Fix to atomic compiler errors

This commit is contained in:
Pierre committed 2021-06-04 22:30:00 -06:00
1 parent be4fb6cb35
commit 4eea3c89bb
1 file changed
+2 -1
+2 -1
View File
@@ -39,6 +39,7 @@
#include "common_inc.h"
#include "nrf.h"
#include <atomic>
#include <cstdint>
#ifdef NRF52840_XXAA
#define HWPWM_MODULE_NUM 4
@@ -51,7 +52,7 @@ class HardwarePWM
private:
enum { MAX_CHANNELS = 4 }; // Max channel per group
NRF_PWM_Type * const _pwm;
std::atomic_uint32_t _owner_token;
std::atomic<std::uint32_t> _owner_token;
uint16_t _seq0[MAX_CHANNELS];