diff options
author | Jeff Hatch <jhatch@multitech.com> | 2019-07-23 08:51:41 -0500 |
---|---|---|
committer | Jeff Hatch <jhatch@multitech.com> | 2019-07-23 08:51:41 -0500 |
commit | f6f7d0e174d2bf5eb4494e2508c17d3d7fbdc4e9 (patch) | |
tree | 4f0e44ed31f0e536835260ff5b4849f84289ee9c /src/MTS_IO_LE910NA1Radio.cpp | |
parent | 86e572b513259e1f7164dd4e4b0f490c870bfc30 (diff) | |
parent | 0330513b8913d1d7bf14bad99d64ab002b770b7c (diff) | |
download | libmts-io-f6f7d0e174d2bf5eb4494e2508c17d3d7fbdc4e9.tar.gz libmts-io-f6f7d0e174d2bf5eb4494e2508c17d3d7fbdc4e9.tar.bz2 libmts-io-f6f7d0e174d2bf5eb4494e2508c17d3d7fbdc4e9.zip |
Merge branch 'quectel-radio' into 'master'
Quectel radio
See merge request !1
Diffstat (limited to 'src/MTS_IO_LE910NA1Radio.cpp')
-rw-r--r-- | src/MTS_IO_LE910NA1Radio.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/MTS_IO_LE910NA1Radio.cpp b/src/MTS_IO_LE910NA1Radio.cpp index 64583b4..c7341b0 100644 --- a/src/MTS_IO_LE910NA1Radio.cpp +++ b/src/MTS_IO_LE910NA1Radio.cpp @@ -38,8 +38,8 @@ LE910NA1Radio::LE910NA1Radio(const std::string& sPort) } -CellularRadio::CODE LE910NA1Radio::setActiveFirmware(const Json::Value& jArgs) { - CellularRadio::CODE rc; +ICellularRadio::CODE LE910NA1Radio::setActiveFirmware(const Json::Value& jArgs) { + ICellularRadio::CODE rc; // Set command allows enabling a specific firmware image on products // embedding 2 different firmware images: @@ -82,9 +82,9 @@ CellularRadio::CODE LE910NA1Radio::setActiveFirmware(const Json::Value& jArgs) { return sendBasicCommand(sCmd, 5000); } -CellularRadio::CODE LE910NA1Radio::getActiveFirmware(std::string& sFwId) { +ICellularRadio::CODE LE910NA1Radio::getActiveFirmware(std::string& sFwId) { std::string sCmd; - CellularRadio::CODE rc; + ICellularRadio::CODE rc; // // Read command reports the current active firmware image: // AT#FWSWITCH? @@ -108,7 +108,7 @@ CellularRadio::CODE LE910NA1Radio::getActiveFirmware(std::string& sFwId) { sCmd = "AT#FWSWITCH?"; std::string sResult = sendCommand(sCmd); - size_t end = sResult.find(RSP_OK); + size_t end = sResult.find(ICellularRadio::RSP_OK); if (end == std::string::npos) { printWarning("%s| Unable to get active image number from radio using command [%s]", getName().c_str(), |