Skip to content

Commit cb6f5d6

Browse files
authored
Merge pull request #8766 from jarvte/fix_cellular_backward_com
Fix cellular backward compatibility
2 parents 52aea31 + a3589ed commit cb6f5d6

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)