Skip to content

Commit ae230e5

Browse files
Jarkko Pasojuhhei01
authored andcommitted
FHSS: Update Beacon synch info in critical state
(cherry picked from commit 89de58e43616877e59153207be852b9147d67f67)
1 parent 84bd8a4 commit ae230e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/Service_Libs/fhss/fhss_beacon_tasklet.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "fhss.h"
2727
#include "fhss_beacon.h"
2828
#include "fhss_statistics.h"
29+
#include "platform/arm_hal_interrupt.h"
2930

3031
#include <string.h> // memset
3132

@@ -128,8 +129,9 @@ static void fhss_beacon_tasklet_func(arm_event_s* event)
128129
void fhss_beacon_build(fhss_structure_t *fhss_structure, uint8_t* dest)
129130
{
130131
fhss_synchronization_beacon_payload_s temp_payload;
131-
132+
platform_enter_critical();
132133
fhss_beacon_update_payload(fhss_structure, &temp_payload);
134+
platform_exit_critical();
133135
fhss_beacon_encode_raw(dest, &temp_payload);
134136
}
135137

0 commit comments

Comments
 (0)