diff options
author | Jeff Hatch <jhatch@multitech.com> | 2020-02-19 09:00:53 -0600 |
---|---|---|
committer | Jeff Hatch <jhatch@multitech.com> | 2020-02-19 09:00:53 -0600 |
commit | 51dc05074c338a15a9e37e4e3ed7cd61c981279e (patch) | |
tree | 28929b64e419d6883fa9cd66d2aa8a832ca52120 | |
parent | a6d4914dbf938fbf48c6ace4280f97864c1b4866 (diff) | |
parent | 3b7ac31ffaa0689105030f04a2a1651e19a45664 (diff) | |
download | radio-query-51dc05074c338a15a9e37e4e3ed7cd61c981279e.tar.gz radio-query-51dc05074c338a15a9e37e4e3ed7cd61c981279e.tar.bz2 radio-query-51dc05074c338a15a9e37e4e3ed7cd61c981279e.zip |
Merge branch 'MTX-3232-static-supported-modes' into 'master'
[MTX-3232] Add "supportedCellularModes" value to the radio-query --static
See merge request !4
-rw-r--r-- | main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -516,6 +516,14 @@ Json::Value getStaticData() { jData[MTS::IO::ICellularRadio::KEY_MIP] = jMip; } + std::string sSupportedCellModes(ICellularRadio::VALUE_UNKNOWN); + ICellularRadio::CELLULAR_MODES supportedCellModes; + + if(g_apRadio->getSupportedCellularModes(supportedCellModes) == ICellularRadio::SUCCESS) { + sSupportedCellModes = cellularModeStr(supportedCellModes).c_str(); + } + jData[MTS::IO::ICellularRadio::KEY_SUPPORTED_CELL_MODES] = sSupportedCellModes; + return jData; } |