fixed battery key index on multi battery systems

This commit is contained in:
Linus Dierheimer
2021-04-24 14:25:27 +02:00
parent 2ba1fb0868
commit fc1c17932e
+1 -1
View File
@@ -144,7 +144,7 @@ void ffPrintBattery(FFinstance* instance)
{
FFstrbuf* name = ffListGet(&dirs, i);
ffStrbufAppend(&baseDir, name);
printBattery(instance, &baseDir, dirs.length == 1 ? 0 : i);
printBattery(instance, &baseDir, dirs.length == 1 ? 0 : i + 1);
ffStrbufSubstrBefore(&baseDir, baseDirLength);
ffStrbufDestroy(name);
}