diff options
author | Jeff Hatch <jhatch@multitech.com> | 2019-08-05 15:22:11 -0500 |
---|---|---|
committer | Jeff Hatch <jhatch@multitech.com> | 2019-08-05 15:22:11 -0500 |
commit | 27d52e6d624a6bd56dc52e1b559812f64c4f3e43 (patch) | |
tree | 600a2c133637a775934eba9474dcc3f46d7828d0 | |
parent | daa1ac9a0daa357a60b2dcba5885ef6cc3210437 (diff) | |
download | libmts-io-27d52e6d624a6bd56dc52e1b559812f64c4f3e43.tar.gz libmts-io-27d52e6d624a6bd56dc52e1b559812f64c4f3e43.tar.bz2 libmts-io-27d52e6d624a6bd56dc52e1b559812f64c4f3e43.zip |
Fix split limit
-rw-r--r-- | src/MTS_IO_LE910C4NFRadio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MTS_IO_LE910C4NFRadio.cpp b/src/MTS_IO_LE910C4NFRadio.cpp index bec0cfd..4c7f5a3 100644 --- a/src/MTS_IO_LE910C4NFRadio.cpp +++ b/src/MTS_IO_LE910C4NFRadio.cpp @@ -112,7 +112,7 @@ CellularRadio::CODE LE910C4NFRadio::getActiveFirmware(std::string& sFwId) { size_t start = sResult.find("#FWSWITCH:") + sizeof("#FWSWITCH:"); std::string sFwSwitchValue = MTS::Text::trim(sResult.substr(start, end-start)); - std::vector<std::string> sFwSwitchValues = Text::split(sFwSwitchValue, ',', 1); + std::vector<std::string> sFwSwitchValues = Text::split(sFwSwitchValue, ',', 2); if (sFwSwitchValues.size() >= 1) { sFwId = sFwSwitchValues[0]; |