Skip to content

Commit d9ad62e

Browse files
authored
Merge pull request #10363 from hasnainvirk/flagging_default_ctor
Flagging WEAK method implementation for default construction
2 parents 5846cf4 + 34fc828 commit d9ad62e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

features/cellular/framework/targets/QUECTEL/EC2X/QUECTEL_EC2X.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ QUECTEL_EC2X::QUECTEL_EC2X(FileHandle *fh, PinName pwr, bool active_high, PinNam
7373
AT_CellularBase::set_cellular_properties(cellular_properties);
7474
}
7575

76+
#if MBED_CONF_QUECTEL_EC2X_PROVIDE_DEFAULT
7677
CellularDevice *CellularDevice::get_default_instance()
7778
{
7879
static UARTSerial serial(MBED_CONF_QUECTEL_EC2X_TX,
@@ -87,6 +88,7 @@ CellularDevice *CellularDevice::get_default_instance()
8788
MBED_CONF_QUECTEL_EC2X_RST);
8889
return &device;
8990
}
91+
#endif
9092

9193
nsapi_error_t QUECTEL_EC2X::press_power_button(uint32_t timeout)
9294
{

0 commit comments

Comments
 (0)