Skip to content

Commit 98f3baa

Browse files
author
Wajahat Abbas
committed
Removed error directives
1 parent a5015c2 commit 98f3baa

File tree

2 files changed

+36
-3
lines changed

2 files changed

+36
-3
lines changed

features/cellular/framework/targets/UBLOX/AT/UBLOX_AT.cpp

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,23 @@ static const intptr_t cellular_properties[AT_CellularBase::PROPERTY_MAX] = {
6161
1, // PROPERTY_AT_CGEREP
6262
};
6363
#else
64-
#error This modem is currently not supported.
64+
static const intptr_t cellular_properties[AT_CellularBase::PROPERTY_MAX] = {
65+
0, // C_EREG
66+
0, // C_GREG
67+
0, // C_REG
68+
0, // AT_CGSN_WITH_TYPE
69+
0, // AT_CGDATA
70+
0, // AT_CGAUTH
71+
0, // AT_CNMI
72+
0, // AT_CSMP
73+
0, // AT_CMGF
74+
0, // AT_CSDH
75+
0, // PROPERTY_IPV4_STACK
76+
0, // PROPERTY_IPV6_STACK
77+
0, // PROPERTY_IPV4V6_STACK
78+
0, // PROPERTY_NON_IP_PDP_TYPE
79+
0, // PROPERTY_AT_CGEREP
80+
};
6581
#endif
6682

6783
UBLOX_AT::UBLOX_AT(FileHandle *fh) : AT_CellularDevice(fh)
@@ -122,7 +138,8 @@ nsapi_error_t UBLOX_AT::init()
122138
err = _at->at_cmd_discard("+CFUN", "=1"); // set full functionality
123139
}
124140
#else
125-
#error This modem is currently not supported.
141+
_at->unlock();
142+
return NSAPI_ERROR_UNSUPPORTED;
126143
#endif
127144

128145
return _at->unlock_return_error();

features/cellular/framework/targets/UBLOX/PPP/UBLOX_PPP.cpp

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,23 @@ static const intptr_t cellular_properties[AT_CellularBase::PROPERTY_MAX] = {
6262
1, // PROPERTY_AT_CGEREP
6363
};
6464
#else
65-
#error This modem is currently not supported.
65+
static const intptr_t cellular_properties[AT_CellularBase::PROPERTY_MAX] = {
66+
0, // C_EREG
67+
0, // C_GREG
68+
0, // C_REG
69+
0, // AT_CGSN_WITH_TYPE
70+
0, // AT_CGDATA
71+
0, // AT_CGAUTH
72+
0, // AT_CNMI
73+
0, // AT_CSMP
74+
0, // AT_CMGF
75+
0, // AT_CSDH
76+
0, // PROPERTY_IPV4_STACK
77+
0, // PROPERTY_IPV6_STACK
78+
0, // PROPERTY_IPV4V6_STACK
79+
0, // PROPERTY_NON_IP_PDP_TYPE
80+
0, // PROPERTY_AT_CGEREP
81+
};
6682
#endif
6783

6884
UBLOX_PPP::UBLOX_PPP(FileHandle *fh) : AT_CellularDevice(fh)

0 commit comments

Comments
 (0)