mirror of https://github.com/ARMmbed/mbed-os.git
Removed error directives
parent
a5015c20ee
commit
98f3baa455
|
|
@ -61,7 +61,23 @@ static const intptr_t cellular_properties[AT_CellularBase::PROPERTY_MAX] = {
|
|||
1, // PROPERTY_AT_CGEREP
|
||||
};
|
||||
#else
|
||||
#error This modem is currently not supported.
|
||||
static const intptr_t cellular_properties[AT_CellularBase::PROPERTY_MAX] = {
|
||||
0, // C_EREG
|
||||
0, // C_GREG
|
||||
0, // C_REG
|
||||
0, // AT_CGSN_WITH_TYPE
|
||||
0, // AT_CGDATA
|
||||
0, // AT_CGAUTH
|
||||
0, // AT_CNMI
|
||||
0, // AT_CSMP
|
||||
0, // AT_CMGF
|
||||
0, // AT_CSDH
|
||||
0, // PROPERTY_IPV4_STACK
|
||||
0, // PROPERTY_IPV6_STACK
|
||||
0, // PROPERTY_IPV4V6_STACK
|
||||
0, // PROPERTY_NON_IP_PDP_TYPE
|
||||
0, // PROPERTY_AT_CGEREP
|
||||
};
|
||||
#endif
|
||||
|
||||
UBLOX_AT::UBLOX_AT(FileHandle *fh) : AT_CellularDevice(fh)
|
||||
|
|
@ -122,7 +138,8 @@ nsapi_error_t UBLOX_AT::init()
|
|||
err = _at->at_cmd_discard("+CFUN", "=1"); // set full functionality
|
||||
}
|
||||
#else
|
||||
#error This modem is currently not supported.
|
||||
_at->unlock();
|
||||
return NSAPI_ERROR_UNSUPPORTED;
|
||||
#endif
|
||||
|
||||
return _at->unlock_return_error();
|
||||
|
|
|
|||
|
|
@ -62,7 +62,23 @@ static const intptr_t cellular_properties[AT_CellularBase::PROPERTY_MAX] = {
|
|||
1, // PROPERTY_AT_CGEREP
|
||||
};
|
||||
#else
|
||||
#error This modem is currently not supported.
|
||||
static const intptr_t cellular_properties[AT_CellularBase::PROPERTY_MAX] = {
|
||||
0, // C_EREG
|
||||
0, // C_GREG
|
||||
0, // C_REG
|
||||
0, // AT_CGSN_WITH_TYPE
|
||||
0, // AT_CGDATA
|
||||
0, // AT_CGAUTH
|
||||
0, // AT_CNMI
|
||||
0, // AT_CSMP
|
||||
0, // AT_CMGF
|
||||
0, // AT_CSDH
|
||||
0, // PROPERTY_IPV4_STACK
|
||||
0, // PROPERTY_IPV6_STACK
|
||||
0, // PROPERTY_IPV4V6_STACK
|
||||
0, // PROPERTY_NON_IP_PDP_TYPE
|
||||
0, // PROPERTY_AT_CGEREP
|
||||
};
|
||||
#endif
|
||||
|
||||
UBLOX_PPP::UBLOX_PPP(FileHandle *fh) : AT_CellularDevice(fh)
|
||||
|
|
|
|||
Loading…
Reference in New Issue