diff options
author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2019-07-18 11:59:02 +0300 |
---|---|---|
committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2019-07-18 12:16:25 +0300 |
commit | fe970f5bb77354b7507e230b1465e9178c80ee7a (patch) | |
tree | d7a840d51a65ecface536ced0c21062f4804ee98 /src/MTS_IO_CellularRadio.cpp | |
parent | ebfa95037a98d785029dc9afe8e4aafd8c81b843 (diff) | |
download | libmts-io-fe970f5bb77354b7507e230b1465e9178c80ee7a.tar.gz libmts-io-fe970f5bb77354b7507e230b1465e9178c80ee7a.tar.bz2 libmts-io-fe970f5bb77354b7507e230b1465e9178c80ee7a.zip |
[MTS-MTQ] QuectelRadio implementation
Refactored the CellularRadio class to include base stub implementation
for the "CellularRadio::getCarrierFromFirmware" and
"CellularRadio::getHardwareVersionFromFirmware" methods.
From now assuming that those two possibilities are not supported
by the modem until otherwise specified (i.e. until the method
implementation was overridden in derived class).
This change was implemented after a code review.
Diffstat (limited to 'src/MTS_IO_CellularRadio.cpp')
-rw-r--r-- | src/MTS_IO_CellularRadio.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/MTS_IO_CellularRadio.cpp b/src/MTS_IO_CellularRadio.cpp index 4dcea7d..feccd3c 100644 --- a/src/MTS_IO_CellularRadio.cpp +++ b/src/MTS_IO_CellularRadio.cpp @@ -976,6 +976,18 @@ bool CellularRadio::splitAndAssign(const std::string& sLine, const std::string& return true; } +bool CellularRadio::getCarrierFromFirmware(const std::string& sFirmware, std::string& sCarrier) { + // Assuming that this function is not supported by the modem until overriden. + + return false; +} + +bool CellularRadio::getHardwareVersionFromFirmware(const std::string& sFirmware, std::string& sHardware) { + // Assuming that this function is not supported by the modem until overriden. + + return false; +} + const char *CellularRadio::RadioBandMap::getLTEBand(const int32_t channel) { for (unsigned int ii = 0; ii < NUM_LTE_BANDS; ii++) |