Skip to content

Commit 1a798ab

Browse files
author
Juha Heiskanen
committed
FHHS old synch disable
Old session sych was causing big compenstation when device rejoin network. Change-Id: I30fa4ea0b9bd456d41201c9d2ed5904b536fcf1f
1 parent 47f65aa commit 1a798ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/Service_Libs/fhss/fhss_ws.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ static void fhss_broadcast_handler(const fhss_api_t *fhss_api, uint16_t delay)
225225
if (fhss_structure->ws->fhss_configuration.fhss_bc_dwell_interval == 0 || fhss_structure->ws->fhss_configuration.fhss_broadcast_interval == 0) {
226226
// stop broadcast schedule
227227
fhss_structure->ws->is_on_bc_channel = false;
228+
fhss_structure->ws->synchronization_time = 0;
228229
return;
229230
}
230231
if (fhss_structure->ws->is_on_bc_channel == false) {
@@ -879,6 +880,10 @@ int fhss_ws_configuration_set(fhss_structure_t *fhss_structure, const fhss_ws_co
879880
fhss_stop_timer(fhss_structure, fhss_unicast_handler);
880881
fhss_structure->ws->unicast_timer_running = false;
881882
}
883+
if (fhss_configuration->ws_bc_channel_function == WS_FIXED_CHANNEL || (fhss_structure->ws->fhss_configuration.fhss_bc_dwell_interval == 0 || fhss_structure->ws->fhss_configuration.fhss_broadcast_interval == 0)) {
884+
fhss_structure->ws->synchronization_time = 0;
885+
}
886+
882887
if ((fhss_structure->ws->unicast_timer_running == false) && (fhss_configuration->ws_uc_channel_function != WS_FIXED_CHANNEL) && fhss_configuration->fhss_uc_dwell_interval) {
883888
fhss_ws_start_timer(fhss_structure, MS_TO_US(fhss_configuration->fhss_uc_dwell_interval), fhss_unicast_handler);
884889
fhss_structure->ws->unicast_timer_running = true;

0 commit comments

Comments
 (0)