Skip to content

Commit 13222da

Browse files
committed
Call network status callback from UBLOX AT
The helper method call_network_cb, actually does a lot more than calling the callback. The method has a check that the network status supplied for the callback is different compared to the internal one. It also sets the class member if it is changed. This is a bit surprising, given the name of the method. It also means that it doesn't work in this call, as the member is already set.
1 parent 58b176c commit 13222da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void UBLOX_AT_CellularContext::do_connect()
6767
_at.unlock();
6868

6969
if (_status_cb) {
70-
call_network_cb(_connect_status);
70+
_status_cb(NSAPI_EVENT_CONNECTION_STATUS_CHANGE, _connect_status);
7171
}
7272
}
7373

0 commit comments

Comments
 (0)