Fix wrong strncmp replacement

Fixes 4c66eb6d4c
This commit is contained in:
Christian Göttsche 2020-10-20 22:30:13 +02:00
parent 7429c22201
commit e12d48a661

View File

@ -53,7 +53,7 @@ static unsigned long int parseBatInfo(const char *fileName, const unsigned short
if (!dirEntry)
break;
char* entryName = dirEntry->d_name;
if (String_startsWith(entryName, "BAT"))
if (!String_startsWith(entryName, "BAT"))
continue;
batteries[nBatteries] = xStrdup(entryName);
nBatteries++;