diff --git a/source/Service_Libs/fhss/fhss_beacon_tasklet.c b/source/Service_Libs/fhss/fhss_beacon_tasklet.c index 158782ec354..47cc5048ee4 100644 --- a/source/Service_Libs/fhss/fhss_beacon_tasklet.c +++ b/source/Service_Libs/fhss/fhss_beacon_tasklet.c @@ -26,6 +26,7 @@ #include "fhss.h" #include "fhss_beacon.h" #include "fhss_statistics.h" +#include "platform/arm_hal_interrupt.h" #include // memset @@ -128,8 +129,9 @@ static void fhss_beacon_tasklet_func(arm_event_s* event) void fhss_beacon_build(fhss_structure_t *fhss_structure, uint8_t* dest) { fhss_synchronization_beacon_payload_s temp_payload; - + platform_enter_critical(); fhss_beacon_update_payload(fhss_structure, &temp_payload); + platform_exit_critical(); fhss_beacon_encode_raw(dest, &temp_payload); }