Merge pull request #10363 from hasnainvirk/flagging_default_ctor

Flagging WEAK method implementation for default construction
pull/10375/head
Martin Kojtal 2019-04-11 09:47:41 +01:00 committed by GitHub
commit d9ad62e82f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,7 @@ QUECTEL_EC2X::QUECTEL_EC2X(FileHandle *fh, PinName pwr, bool active_high, PinNam
AT_CellularBase::set_cellular_properties(cellular_properties);
}
#if MBED_CONF_QUECTEL_EC2X_PROVIDE_DEFAULT
CellularDevice *CellularDevice::get_default_instance()
{
static UARTSerial serial(MBED_CONF_QUECTEL_EC2X_TX,
@ -87,6 +88,7 @@ CellularDevice *CellularDevice::get_default_instance()
MBED_CONF_QUECTEL_EC2X_RST);
return &device;
}
#endif
nsapi_error_t QUECTEL_EC2X::press_power_button(uint32_t timeout)
{