update: fix marker for current partition in new partition layout

Origin commit data
------------------
Commit: f91179fb0f
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-05-12 (Sun, 12 May 2019)

Origin message was:
------------------
- update: fix marker for current partition in new partition layout
This commit is contained in:
vanhofen
2019-05-12 14:39:24 +02:00
parent 1c2ae6adb2
commit f31be37174

View File

@@ -645,6 +645,8 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey)
if (fseek(f, -2, SEEK_END) == 0)
{
c[0] = fgetc(f);
if (strcmp(c, "l") == 0)
c[0] = '1';
dprintf(DEBUG_NORMAL, "[update] Current partition: %s\n", c);
}
fclose(f);