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_ME910C1WWRadio.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_ME910C1WWRadio.cpp')
-rw-r--r-- | src/MTS_IO_ME910C1WWRadio.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/MTS_IO_ME910C1WWRadio.cpp b/src/MTS_IO_ME910C1WWRadio.cpp index d26749a..0469d5d 100644 --- a/src/MTS_IO_ME910C1WWRadio.cpp +++ b/src/MTS_IO_ME910C1WWRadio.cpp @@ -32,8 +32,8 @@ ME910C1WWRadio::ME910C1WWRadio(const std::string& sPort) } -CellularRadio::CODE ME910C1WWRadio::setActiveFirmware(const Json::Value& jArgs) { - CellularRadio::CODE rc; +ICellularRadio::CODE ME910C1WWRadio::setActiveFirmware(const Json::Value& jArgs) { + ICellularRadio::CODE rc; // Set command allows enabling a specific firmware image on products // embedding 2 different firmware images: @@ -76,9 +76,9 @@ CellularRadio::CODE ME910C1WWRadio::setActiveFirmware(const Json::Value& jArgs) return sendBasicCommand(sCmd, 5000); } -CellularRadio::CODE ME910C1WWRadio::getActiveFirmware(std::string& sFwId) { +ICellularRadio::CODE ME910C1WWRadio::getActiveFirmware(std::string& sFwId) { std::string sCmd; - CellularRadio::CODE rc; + ICellularRadio::CODE rc; // // Read command reports the current active firmware image: // AT#FWSWITCH? @@ -101,7 +101,7 @@ CellularRadio::CODE ME910C1WWRadio::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(), |