gui/update.cpp: fix image update check,

enable save u-boot menu switch
This commit is contained in:
[CST] Focus
2015-01-09 12:41:24 +03:00
parent 026c8b4389
commit f04e22befe

View File

@@ -169,6 +169,7 @@ bool CFlashUpdate::checkOnlineVersion()
if (httpTool.downloadFile(url, gTmpPath LIST_OF_UPDATES_LOCAL_FILENAME, 20)) {
std::ifstream in(gTmpPath LIST_OF_UPDATES_LOCAL_FILENAME);
while (in >> url >> version >> md5 >> std::ws) {
std::getline(in, name);
CFlashVersionInfo versionInfo(version);
newVer = versionInfo.getVersion();
#ifdef DEBUG
@@ -988,7 +989,7 @@ void CFlashExpertSetup::readMTDPart(int mtd, const std::string &fileName)
sync();
}
//#define UBOOT_BIN
#define UBOOT_BIN
//#define SPARE_BIN
int CFlashExpertSetup::exec(CMenuTarget* parent, const std::string &actionKey)