From f31be3717452e65f14c98c8a7c4f4b7694545669 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 12 May 2019 14:39:24 +0200 Subject: [PATCH] update: fix marker for current partition in new partition layout Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/f91179fb0feb755c17335631c3d887387cc11f1f Author: vanhofen Date: 2019-05-12 (Sun, 12 May 2019) Origin message was: ------------------ - update: fix marker for current partition in new partition layout --- src/gui/update.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/update.cpp b/src/gui/update.cpp index 234885ba3..b86f2500b 100644 --- a/src/gui/update.cpp +++ b/src/gui/update.cpp @@ -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);