From 041ca8451eb51c8966c7af180fb76fef48e447c0 Mon Sep 17 00:00:00 2001 From: Aurora Date: Wed, 27 Apr 2016 15:37:13 +0200 Subject: [PATCH] Use the older cxi, should fix NANDs with incomplete background updates --- source/fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/fs.c b/source/fs.c index 6428f7a..3f2bc04 100644 --- a/source/fs.c +++ b/source/fs.c @@ -87,8 +87,8 @@ void firmRead(void *dest, const char *firmFolder) tempId += *tmp > '9' ? *tmp - 'A' + 10 : *tmp - '0'; } - //Found a newer cxi - if(tempId > id) id = tempId; + //Found an older cxi + if(tempId < id) id = tempId; } f_closedir(&dir);