Skip to content

Commit b159a51

Browse files
author
Ari Parkkila
committed
Added mux-enabled flag in cellular mbed_lib.json
1 parent 020e158 commit b159a51

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

features/cellular/framework/mux/cellular_mux.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18+
#if MBED_CONF_CELLULAR_MUX_ENABLED
19+
1820
#include <errno.h>
1921
#include "cellular_mux.h"
2022
#include "mbed_retarget.h"
@@ -1251,3 +1253,5 @@ short Mux::poll()
12511253
}
12521254

12531255
} // namespace mbed
1256+
1257+
#endif // MBED_CONF_CELLULAR_MUX_ENABLED

features/cellular/framework/mux/cellular_mux.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18+
#if MBED_CONF_CELLULAR_MUX_ENABLED
19+
1820
#ifndef MUX_H
1921
#define MUX_H
2022

@@ -577,3 +579,5 @@ class Mux
577579
} // namespace mbed
578580

579581
#endif
582+
583+
#endif // MBED_CONF_CELLULAR_MUX_ENABLED

features/cellular/framework/mux/cellular_mux_data_service.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17+
18+
#if MBED_CONF_CELLULAR_MUX_ENABLED
19+
1720
#include "cellular_mux.h"
1821

1922
namespace mbed
@@ -57,3 +60,5 @@ void MuxDataService::sigio(Callback<void()> func)
5760
}
5861

5962
} // namespace mbed
63+
64+
#endif // MBED_CONF_CELLULAR_MUX_ENABLED

features/cellular/mbed_lib.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
22
"name": "cellular",
33
"config": {
4-
"use_apn_lookup": {
4+
"use-apn-lookup": {
55
"help": "Use APN database lookup",
66
"value": true
7+
},
8+
"mux-enabled": {
9+
"help": "Use cellular modem over MUX",
10+
"value": false
711
}
812
}
913
}

0 commit comments

Comments
 (0)