Skip to content

Commit a3589ed

Browse files
author
Teppo Järvelin
committed
Fixed cellular backward compatiblity.
1 parent d643034 commit a3589ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

features/netsocket/cellular/generic_modem_driver/OnboardCellularInterface.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ using namespace mbed;
2222
MBED_DEPRECATED_SINCE("mbed-os-5.9", "This API will be deprecated, use CellularBase::get_default_instance() instead.")
2323
class OnboardCellularInterface : public CellularBase {
2424
public:
25-
OnboardCellularInterface()
25+
OnboardCellularInterface(bool debug = false)
2626
{
2727
context = CellularContext::get_default_instance();
2828
MBED_ASSERT(context != NULL);
29+
CellularDevice *dev = CellularDevice::get_default_instance();
30+
MBED_ASSERT(dev != NULL);
31+
dev->modem_debug_on(debug);
2932
}
3033
public: // from NetworkInterface
3134
virtual nsapi_error_t set_blocking(bool blocking)

0 commit comments

Comments
 (0)