File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
features/nanostack/mbed-mesh-api/source Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,9 @@ void Nanostack::Interface::network_handler(mesh_connection_status_t status)
149
149
_connect_status = NSAPI_STATUS_DISCONNECTED;
150
150
}
151
151
152
- if (_connection_status_cb && _previous_connection_status != _connect_status) {
153
-
152
+ if (_connection_status_cb && _previous_connection_status != _connect_status
153
+ && (_previous_connection_status != NSAPI_STATUS_GLOBAL_UP || status != MESH_BOOTSTRAP_STARTED)
154
+ && (_previous_connection_status != NSAPI_STATUS_CONNECTING || status != MESH_BOOTSTRAP_START_FAILED)) {
154
155
_connection_status_cb (NSAPI_EVENT_CONNECTION_STATUS_CHANGE, _connect_status);
155
156
}
156
157
_previous_connection_status = _connect_status;
You can’t perform that action at this time.
0 commit comments