summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Hatch <jhatch@multitech.com>2020-02-19 09:00:53 -0600
committerJeff Hatch <jhatch@multitech.com>2020-02-19 09:00:53 -0600
commit51dc05074c338a15a9e37e4e3ed7cd61c981279e (patch)
tree28929b64e419d6883fa9cd66d2aa8a832ca52120
parenta6d4914dbf938fbf48c6ace4280f97864c1b4866 (diff)
parent3b7ac31ffaa0689105030f04a2a1651e19a45664 (diff)
downloadradio-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.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index fdb7cd8..f6aa1ae 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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;
}