diff options
author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-08-07 16:03:56 +0300 |
---|---|---|
committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-08-07 16:03:56 +0300 |
commit | b32dbb2c5f12fbacf598edb812acab816068de00 (patch) | |
tree | 3e85c3ee1e6b9958dcc095e8e60770c30f73e43f | |
parent | 68437a8e36e60eac503a1e7e6ed66d8acb74ad5d (diff) | |
download | libmts-io-b32dbb2c5f12fbacf598edb812acab816068de00.tar.gz libmts-io-b32dbb2c5f12fbacf598edb812acab816068de00.tar.bz2 libmts-io-b32dbb2c5f12fbacf598edb812acab816068de00.zip |
Quectel EG25-G Delta Radio Firmware Upgrade support - libmts-io implementation
Small improvements in code comments.
-rw-r--r-- | include/mts/MTS_IO_QuectelRadio.h | 2 | ||||
-rw-r--r-- | src/MTS_IO_QuectelRadio.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/mts/MTS_IO_QuectelRadio.h b/include/mts/MTS_IO_QuectelRadio.h index 5199b40..9713f48 100644 --- a/include/mts/MTS_IO_QuectelRadio.h +++ b/include/mts/MTS_IO_QuectelRadio.h @@ -86,7 +86,7 @@ namespace MTS { CODE fumoWaitUpgradeFinished(UpdateCb& stepCb); CODE fumoWaitNewFirmware(UpdateCb& stepCb); - /// Parse error code in early FUMO URC result received before the first attempt to flash the firmware + /// Parse error code if +QIND: "FOTA" received before the first attempt to flash the firmware std::string getFumoEarlyErrorCode(const std::string& sRadioInput); /// Get value from container by its index, use default value if not found. Non-template version. diff --git a/src/MTS_IO_QuectelRadio.cpp b/src/MTS_IO_QuectelRadio.cpp index de36987..aeb06ab 100644 --- a/src/MTS_IO_QuectelRadio.cpp +++ b/src/MTS_IO_QuectelRadio.cpp @@ -1010,11 +1010,11 @@ ICellularRadio::CODE QuectelRadio::checkFile(bool& bIsFilePresent, const std::st return FAILURE; } - // UFS files in +QFLST output may or may not have "UFS:" prefix + // UFS files in +QFLST output may or may not have a "UFS:" prefix const std::string sExpectedFull = "+QFLST: \"UFS:" + sTargetFilename + "\""; const std::string sExpectedAlt = "+QFLST: \"" + sTargetFilename + "\""; - // File is present if file name found with or without "UFS:" prefix in QFLST output + // File is present if its name is present with or without "UFS:" prefix in QFLST output bool bIsPresentFull = (sResult.find(sExpectedFull) != std::string::npos); bool bIsPresentAlt = (sResult.find(sExpectedAlt) != std::string::npos); |