File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
features/cellular/framework/targets/UBLOX/AT Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ void UBLOX_AT_CellularContext::do_connect()
49
49
{
50
50
_at.lock ();
51
51
_cb_data.error = NSAPI_ERROR_NO_CONNECTION;
52
- CellularNetwork::RadioAccessTechnology rat = read_radio_technology ();
53
52
54
53
// Attempt to establish a connection
55
54
#ifndef TARGET_UBLOX_C030_R41XM
@@ -59,6 +58,7 @@ void UBLOX_AT_CellularContext::do_connect()
59
58
_is_context_activated = true ;
60
59
_cb_data.error = NSAPI_ERROR_OK;
61
60
#elif TARGET_UBLOX_C030_R412M
61
+ CellularNetwork::RadioAccessTechnology rat = read_radio_technology ();
62
62
if (rat == CellularNetwork::RadioAccessTechnology::RAT_EGPRS) {
63
63
if (!_is_context_active) {
64
64
_at.set_at_timeout (150 * 1000 );
@@ -345,6 +345,7 @@ CellularContext::AuthenticationType UBLOX_AT_CellularContext::get_auth()
345
345
return _authentication_type;
346
346
}
347
347
348
+ #ifdef TARGET_UBLOX_C030_R412M
348
349
CellularNetwork::RadioAccessTechnology UBLOX_AT_CellularContext::read_radio_technology ()
349
350
{
350
351
int act;
@@ -382,5 +383,6 @@ CellularNetwork::RadioAccessTechnology UBLOX_AT_CellularContext::read_radio_tech
382
383
383
384
return rat;
384
385
}
386
+ #endif // #ifdef TARGET_UBLOX_C030_R412M
385
387
386
388
} /* namespace mbed */
Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ class UBLOX_AT_CellularContext: public AT_CellularContext {
45
45
/* * Get the next set of credentials from the database.
46
46
*/
47
47
void get_next_credentials (char **config);
48
-
48
+ # ifdef TARGET_UBLOX_C030_R412M
49
49
CellularNetwork::RadioAccessTechnology read_radio_technology (void );
50
-
50
+ # endif
51
51
protected:
52
52
virtual NetworkStack *get_stack ();
53
53
You can’t perform that action at this time.
0 commit comments