summaryrefslogtreecommitdiff
path: root/src/MTS_IO_QuectelRadio.cpp
diff options
context:
space:
mode:
authorSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2020-07-06 09:26:03 +0300
committerSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2020-07-06 09:26:29 +0300
commit02d9adc99e2bebde36ad43eb17e8b322cc1014ec (patch)
tree307b058752f8c2e91e92828ddd546d5a3f057a86 /src/MTS_IO_QuectelRadio.cpp
parent0d5806073d2e9bbd7259c474b4079991e0c5ef13 (diff)
downloadlibmts-io-02d9adc99e2bebde36ad43eb17e8b322cc1014ec.tar.gz
libmts-io-02d9adc99e2bebde36ad43eb17e8b322cc1014ec.tar.bz2
libmts-io-02d9adc99e2bebde36ad43eb17e8b322cc1014ec.zip
Quectel Delta Radio Firmware Upgrade support - libmts-io implementation
Fixed format of FILE upload log messages.
Diffstat (limited to 'src/MTS_IO_QuectelRadio.cpp')
-rw-r--r--src/MTS_IO_QuectelRadio.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/MTS_IO_QuectelRadio.cpp b/src/MTS_IO_QuectelRadio.cpp
index 9a95046..e5e3296 100644
--- a/src/MTS_IO_QuectelRadio.cpp
+++ b/src/MTS_IO_QuectelRadio.cpp
@@ -850,7 +850,7 @@ ICellularRadio::CODE QuectelRadio::uploadFile(int fd, const std::string& sTarget
}
printTrace("File upload started.");
- callNextStep(stepCb, "FILE info: Started file upload for " + sTargetFilename);
+ callNextStep(stepCb, "FILE Info: Started file upload for " + sTargetFilename);
uint16_t dChecksum = 0;
size_t nChunksPerCent = (nChunks / 100) + 1;
@@ -875,14 +875,14 @@ ICellularRadio::CODE QuectelRadio::uploadFile(int fd, const std::string& sTarget
if (stepCb && ((iChunk % nChunksPerCent) == 0)) {
size_t dPercentsCompleted = iChunk / nChunksPerCent;
- callNextStep(stepCb, "FILE info: Uploaded " + MTS::Text::format(dPercentsCompleted) + "%");
+ callNextStep(stepCb, "FILE Info: Uploaded " + MTS::Text::format(dPercentsCompleted) + "%");
}
}
if (rc != SUCCESS) {
// cancel upload and terminate
- callNextStep(stepCb, "FILE error: Upload failed due to internal error");
+ callNextStep(stepCb, "FILE Error: Upload failed due to internal error");
abortFileUpload();
return rc;
}
@@ -906,9 +906,9 @@ ICellularRadio::CODE QuectelRadio::uploadFile(int fd, const std::string& sTarget
}
if (rc == SUCCESS) {
- callNextStep(stepCb, "FILE info: Upload finished successfully");
+ callNextStep(stepCb, "FILE Info: Upload finished successfully");
} else {
- callNextStep(stepCb, "FILE error: Upload failed due to internal error");
+ callNextStep(stepCb, "FILE Error: Upload failed due to internal error");
}
return rc;