Skip to content

Commit 0f39a47

Browse files
Jarkko Pasojuhhei01
authored andcommitted
FHSS: Do not update synch monitor right after superframe change
(cherry picked from commit 99d50ad9d7f8dad80f10c2a4303f4e75ab31a3c2)
1 parent c9a098f commit 0f39a47

File tree

1 file changed

+1
-1
lines changed
  • source/Service_Libs/fhss

1 file changed

+1
-1
lines changed

source/Service_Libs/fhss/fhss.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ static int fhss_update_synch_monitor(fhss_structure_t *fhss_structure, const fhs
586586
/* If superframe changed during synchronization but remaining time to next superframe is high, it is likely that
587587
* superframe change is not valid anymore. Don't use this Beacon for syncronization monitoring.
588588
*/
589-
if (!(super_frame_changed && ((configuration->fhss_superframe_length - remaining_time_own) < CLOSE_TO_SUPERFRAME_LENGTH))) {
589+
if ((configuration->fhss_superframe_length - remaining_time_own) > CLOSE_TO_SUPERFRAME_LENGTH) {
590590
remaining_time_own += (int32_t) configuration->fhss_superframe_length * super_frame_changed;
591591

592592
int32_t prev_synch_fix = (time_to_next_superframe - remaining_time_own);

0 commit comments

Comments
 (0)