Skip to content

Commit dbbe2dd

Browse files
author
Teppo Järvelin
committed
Cellular: fixed to compile even if CELLULAR_DEVICE and rx/tx are not defined.
1 parent d1ff9ed commit dbbe2dd

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

features/cellular/framework/API/CellularDevice.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ class FileHandle;
3333
const int MAX_PIN_SIZE = 8;
3434
const int MAX_PLMN_SIZE = 16;
3535

36+
#ifndef MBED_CONF_NSAPI_DEFAULT_CELLULAR_APN
37+
#define MBED_CONF_NSAPI_DEFAULT_CELLULAR_APN NULL
38+
#endif
39+
3640
/**
3741
* Class CellularDevice
3842
*

features/cellular/framework/AT/AT_CellularDevice.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ using namespace mbed;
3333

3434
#define DEFAULT_AT_TIMEOUT 1000 // at default timeout in milliseconds
3535

36+
#ifndef MDMTXD
37+
#define MDMTXD NC
38+
#endif
39+
40+
#ifndef MDMRXD
41+
#define MDMRXD NC
42+
#endif
43+
44+
#ifndef MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE
45+
#define MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE 115200
46+
#endif
47+
3648
AT_CellularDevice::AT_CellularDevice(EventQueue &queue) :
3749
_atHandlers(0), _network(0), _sms(0), _sim(0), _power(0), _information(0), _context_list(0), _at_queue(queue),
3850
_default_timeout(DEFAULT_AT_TIMEOUT), _modem_debug_on(false)

0 commit comments

Comments
 (0)