1
0
mirror of https://github.com/mist-devel/mist-firmware.git synced 2026-02-01 05:52:16 +00:00

ini_parser: don't advance the file pointer too soon

Fixes custom ROM entry handler
This commit is contained in:
Gyorgy Szombathelyi
2020-02-15 22:34:58 +01:00
parent a13b0349cf
commit 18e8ebbd37

View File

@@ -68,8 +68,8 @@ char ini_getch()
#ifdef INI_PARSER_TEST
fread(sector_buffer, sizeof(char), INI_BUF_SIZE, ini_fp);
#else
if (ini_pt) FileNextSector(&ini_file);
FileRead(&ini_file, sector_buffer);
FileNextSector(&ini_file);
#endif
}