update: fix display of installed version; ...

curiously it was only broken on ARM_HARDWARE


Origin commit data
------------------
Commit: d6bc4e2e7b
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-11 (Sat, 11 Nov 2017)

Origin message was:
------------------
- update: fix display of installed version; ...

curiously it was only broken on ARM_HARDWARE
This commit is contained in:
vanhofen
2017-11-11 11:02:11 +01:00
parent cf78f27219
commit 13ecef5460

View File

@@ -218,10 +218,12 @@ bool CFlashUpdate::selectHttpImage(void)
int curVer, newVer, newfound = 0;
CConfigFile _configfile('\t');
const char * versionString = (_configfile.loadConfig(TARGET_PREFIX "/.version")) ? (_configfile.getString( "version", "????????????????").c_str()) : "????????????????";
std::string versionString = "????????????????";
if (_configfile.loadConfig(TARGET_PREFIX "/.version"))
versionString = _configfile.getString("version", "????????????????");
CFlashVersionInfo curInfo(versionString);
printf("current flash-version: %s (%d) date %s (%ld)\n", versionString, curInfo.getVersion(), curInfo.getDate(), curInfo.getDateTime());
CFlashVersionInfo curInfo(versionString.c_str());
printf("current flash-version: %s (%d) date %s (%ld)\n", versionString.c_str(), curInfo.getVersion(), curInfo.getDate(), curInfo.getDateTime());
curVer = curInfo.getVersion();
httpTool.setStatusViewer(this);