From a3589ed41fda0e03a1e1ac649ec043b67d82e5f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teppo=20J=C3=A4rvelin?= Date: Fri, 16 Nov 2018 08:40:36 +0200 Subject: [PATCH] Fixed cellular backward compatiblity. --- .../cellular/generic_modem_driver/OnboardCellularInterface.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/features/netsocket/cellular/generic_modem_driver/OnboardCellularInterface.h b/features/netsocket/cellular/generic_modem_driver/OnboardCellularInterface.h index 50df20de3b..8aa049b261 100644 --- a/features/netsocket/cellular/generic_modem_driver/OnboardCellularInterface.h +++ b/features/netsocket/cellular/generic_modem_driver/OnboardCellularInterface.h @@ -22,10 +22,13 @@ using namespace mbed; MBED_DEPRECATED_SINCE("mbed-os-5.9", "This API will be deprecated, use CellularBase::get_default_instance() instead.") class OnboardCellularInterface : public CellularBase { public: - OnboardCellularInterface() + OnboardCellularInterface(bool debug = false) { context = CellularContext::get_default_instance(); MBED_ASSERT(context != NULL); + CellularDevice *dev = CellularDevice::get_default_instance(); + MBED_ASSERT(dev != NULL); + dev->modem_debug_on(debug); } public: // from NetworkInterface virtual nsapi_error_t set_blocking(bool blocking)