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)
215215 case ARM_NWK_NWK_CONNECTION_DOWN :
216216 /* Connection to Access point is lost wait for Scan Result */
217217 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 );
220220 break ;
221221 case ARM_NWK_NWK_PARENT_POLL_FAIL :
222222 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)
232232 break ;
233233 }
234234
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 ) &&
236237 wisun_tasklet_data_ptr -> network_interface_id != INVALID_INTERFACE_ID ) {
237238 // Set 5s timer for new network scan
238239 eventOS_event_timer_request (TIMER_EVENT_START_BOOTSTRAP ,
You can’t perform that action at this time.
0 commit comments