From ce9d47cf930ab9e6939550bf2a047a675c5b109b Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 12 Jan 2024 21:36:00 +0100 Subject: [PATCH] update: fix commit: neutrino remove useless allow_flash from CmdParser() commit: 947b52f09a5f6b3fc7d0e396b639c0c27e527320 Signed-off-by: Thilo Graf Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/854a86ba9ff97d002ad1e7e5aae3a995f26abf07 Author: vanhofen Date: 2024-01-12 (Fri, 12 Jan 2024) Origin message was: ------------------ - update: fix 27d6d263223f13d0c6bfb482401a7229fbb8217c ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/update.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gui/update.cpp b/src/gui/update.cpp index 70d8cbbbd..ba7d6c27a 100644 --- a/src/gui/update.cpp +++ b/src/gui/update.cpp @@ -201,7 +201,7 @@ bool CFlashUpdate::checkOnlineVersion() CFlashVersionInfo versionInfo(version); newVer = versionInfo.getVersion(); dprintf(DEBUG_NORMAL, "[update] url %s version %s (%d) timestamp %s (%ld) md5 %s name %s\n", url.c_str(), version.c_str(), newVer, versionInfo.getDate(), versionInfo.getDateTime(), md5.c_str(), name.c_str()); - if (versionInfo.snapshot <= '2' && (newVer > curVer || versionInfo.getDateTime() > curInfo.getDateTime())) + if (versionInfo.snapshot <= '9' && (newVer > curVer || versionInfo.getDateTime() > curInfo.getDateTime())) { newfound = true; dprintf(DEBUG_NORMAL, "[update] found new image\n"); @@ -298,10 +298,8 @@ bool CFlashUpdate::selectHttpImage(void) CFlashVersionInfo versionInfo(versions[i]); newVer = versionInfo.getVersion(); dprintf(DEBUG_NORMAL, "[update] url %s version %s (%d) timestamp %s (%ld) md5 %s name %s\n", url.c_str(), version.c_str(), newVer, versionInfo.getDate(), versionInfo.getDateTime(), md5.c_str(), name.c_str()); - if (versionInfo.snapshot <= '2' && (newVer > curVer || versionInfo.getDateTime() > curInfo.getDateTime())) + if (versionInfo.snapshot <= '9' && (newVer > curVer || versionInfo.getDateTime() > curInfo.getDateTime())) newfound = 1; - if (versionInfo.snapshot <= '2') - enabled = false; fileTypes[i] = versionInfo.snapshot; std::string description = versionInfo.getType(true); description += " ";