Skip to content

Commit 8234f00

Browse files
author
Teppo Järvelin
committed
Cellular: fix state machine to compile after master rebase
Fix automatic rebase error with cellulardevice.cpp
1 parent 2470a36 commit 8234f00

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

features/cellular/framework/device/CellularDevice.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@ nsapi_error_t CellularDevice::attach_to_network()
117117

118118
nsapi_error_t CellularDevice::create_state_machine()
119119
{
120-
_nw = open_network(_fh);
121-
// Attach to network so we can get update status from the network
122-
_nw->attach(callback(this, &CellularDevice::stm_callback));
123-
124120
nsapi_error_t err = NSAPI_ERROR_OK;
125121
if (!_state_machine) {
126122
_nw = open_network(_fh);

features/cellular/framework/device/CellularStateMachine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ void CellularStateMachine::state_sim_pin()
406406

407407
void CellularStateMachine::state_signal_quality()
408408
{
409-
_cb_data.error = _network->get_signal_quality(_signal_quality.rssi, &_signal_quality.ber);
409+
_cb_data.error = _network.get_signal_quality(_signal_quality.rssi, &_signal_quality.ber);
410410

411411
if (_cb_data.error != NSAPI_ERROR_OK) {
412412
retry_state_or_fail();

0 commit comments

Comments
 (0)