Skip to content

Commit

Permalink
FHSS: Update Beacon synch info in critical state
Browse files Browse the repository at this point in the history
(cherry picked from commit 89de58e43616877e59153207be852b9147d67f67)
  • Loading branch information
Jarkko Paso authored and juhhei01 committed Dec 8, 2017
1 parent 84bd8a4 commit ae230e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/Service_Libs/fhss/fhss_beacon_tasklet.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "fhss.h"
#include "fhss_beacon.h"
#include "fhss_statistics.h"
#include "platform/arm_hal_interrupt.h"

#include <string.h> // memset

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit ae230e5

Please sign in to comment.