diff options
author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-07-21 20:24:00 +0300 |
---|---|---|
committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-07-22 10:18:37 +0300 |
commit | b9a5e7ab27ad313b95fe6642f08e230091efef0f (patch) | |
tree | db50efd264bc4dbb01548bf22cc5ec502703074b /include | |
parent | a9a598dab448dd0d062725e2f3a60bcf68c6fe9e (diff) | |
download | libmts-io-b9a5e7ab27ad313b95fe6642f08e230091efef0f.tar.gz libmts-io-b9a5e7ab27ad313b95fe6642f08e230091efef0f.tar.bz2 libmts-io-b9a5e7ab27ad313b95fe6642f08e230091efef0f.zip |
Telit Delta Radio Firmware Upgrade support - libmts-io implementation
Changes after code review:
1. Handle cases when the number of bytes written is different from the number of bytes requested to transfer.
2. Use fstat instead of lseek to determine the firmware size.
3. Renamed TelitRadio::startWrite and TelitRadio::abortWrite functions to better represent their applicability scope.
Diffstat (limited to 'include')
-rw-r--r-- | include/mts/MTS_IO_TelitRadio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mts/MTS_IO_TelitRadio.h b/include/mts/MTS_IO_TelitRadio.h index c3ba764..ffdddd9 100644 --- a/include/mts/MTS_IO_TelitRadio.h +++ b/include/mts/MTS_IO_TelitRadio.h @@ -81,8 +81,8 @@ namespace MTS { static const size_t FILE_CHUNK_SIZE; static const std::string CMD_ABORT_UPLOAD; - CODE startWrite(); - CODE abortWrite(); + CODE startFotaWriteABD(); + CODE abortFotaWriteABD(); static inline void callNextStep(UpdateCb& stepCb, const char* csMessage); static inline void callNextStep(UpdateCb& stepCb, const std::string& sMessage); |