File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -672,7 +672,8 @@ static int8_t ws_bootstrap_up(protocol_interface_info_entry_t *cur)
672
672
return -3 ;
673
673
}
674
674
675
-
675
+ //Enable Power bootup timer setup
676
+ cur -> ws_info -> power_up_setup = true;
676
677
// Save FHSS api
677
678
cur -> ws_info -> fhss_api = ns_sw_mac_get_fhss_api (cur -> mac_api );
678
679
@@ -1955,7 +1956,12 @@ static void ws_bootstrap_start_discovery(protocol_interface_info_entry_t *cur)
1955
1956
// Reset advertisement solicit trickle to start discovering network
1956
1957
cur -> ws_info -> trickle_pas_running = true;
1957
1958
trickle_start (& cur -> ws_info -> trickle_pan_advertisement_solicit , & cur -> ws_info -> trickle_params_pan_discovery );
1958
- trickle_inconsistent_heard (& cur -> ws_info -> trickle_pan_advertisement_solicit , & cur -> ws_info -> trickle_params_pan_discovery );
1959
+ if (cur -> ws_info -> power_up_setup ) {
1960
+ cur -> ws_info -> power_up_setup = false;
1961
+ tr_debug ("PAS init I %u and t %u" , cur -> ws_info -> trickle_pan_advertisement_solicit .I , cur -> ws_info -> trickle_pan_advertisement_solicit .t );
1962
+ } else {
1963
+ trickle_inconsistent_heard (& cur -> ws_info -> trickle_pan_advertisement_solicit , & cur -> ws_info -> trickle_params_pan_discovery );
1964
+ }
1959
1965
1960
1966
// Discovery statemachine is checkked after two trickle interval
1961
1967
cur -> bootsrap_state_machine_cnt = 2 * cur -> ws_info -> trickle_params_pan_discovery .Imin + randLIB_get_8bit () % 50 ;
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ typedef struct ws_info_s {
79
79
bool trickle_pa_running : 1 ;
80
80
bool trickle_pcs_running : 1 ;
81
81
bool trickle_pc_running : 1 ;
82
+ bool power_up_setup : 1 ;
82
83
// default fhss parameters for this device
83
84
uint8_t fhss_uc_dwell_interval ;
84
85
uint8_t fhss_bc_dwell_interval ;
You can’t perform that action at this time.
0 commit comments