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);