Merge pull request #8766 from jarvte/fix_cellular_backward_com

Fix cellular backward compatibility
pull/8863/head
Martin Kojtal 2018-11-24 08:05:56 +01:00 committed by GitHub
commit cb6f5d65e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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)