File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
features/nanostack/mbed-mesh-api/source Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -215,8 +215,8 @@ static void wisun_tasklet_parse_network_event(arm_event_s *event)
215
215
case ARM_NWK_NWK_CONNECTION_DOWN :
216
216
/* Connection to Access point is lost wait for Scan Result */
217
217
tr_debug ("WS/RPL scan new network" );
218
- wisun_tasklet_data_ptr -> tasklet_state = TASKLET_STATE_BOOTSTRAP_FAILED ;
219
- wisun_tasklet_network_state_changed (MESH_BOOTSTRAP_FAILED );
218
+ wisun_tasklet_data_ptr -> tasklet_state = TASKLET_STATE_BOOTSTRAP_STARTED ;
219
+ wisun_tasklet_network_state_changed (MESH_BOOTSTRAP_STARTED );
220
220
break ;
221
221
case ARM_NWK_NWK_PARENT_POLL_FAIL :
222
222
wisun_tasklet_data_ptr -> tasklet_state = TASKLET_STATE_BOOTSTRAP_FAILED ;
@@ -232,7 +232,8 @@ static void wisun_tasklet_parse_network_event(arm_event_s *event)
232
232
break ;
233
233
}
234
234
235
- if (wisun_tasklet_data_ptr -> tasklet_state != TASKLET_STATE_BOOTSTRAP_READY &&
235
+ if ((wisun_tasklet_data_ptr -> tasklet_state != TASKLET_STATE_BOOTSTRAP_READY &&
236
+ wisun_tasklet_data_ptr -> tasklet_state != TASKLET_STATE_BOOTSTRAP_STARTED ) &&
236
237
wisun_tasklet_data_ptr -> network_interface_id != INVALID_INTERFACE_ID ) {
237
238
// Set 5s timer for new network scan
238
239
eventOS_event_timer_request (TIMER_EVENT_START_BOOTSTRAP ,
You can’t perform that action at this time.
0 commit comments