rainbow: fix RX thread refusing to exit
This commit is contained in:
parent
5390f868f5
commit
18a9a51a0e
|
@ -26,6 +26,8 @@
|
||||||
#include "../ines.h"
|
#include "../ines.h"
|
||||||
#include "rainbow_esp.h"
|
#include "rainbow_esp.h"
|
||||||
|
|
||||||
|
#include <atomic>
|
||||||
|
|
||||||
#undef RAINBOW_DEBUG
|
#undef RAINBOW_DEBUG
|
||||||
//define RAINBOW_DEBUG
|
//define RAINBOW_DEBUG
|
||||||
|
|
||||||
|
@ -131,7 +133,7 @@ static SFORMAT SStateRegs[] =
|
||||||
// ESP interface
|
// ESP interface
|
||||||
|
|
||||||
static EspFirmware *esp = NULL;
|
static EspFirmware *esp = NULL;
|
||||||
static bool esp_running;
|
static std::atomic<bool> esp_running;
|
||||||
static bool esp_enable;
|
static bool esp_enable;
|
||||||
static bool esp_irq_enable;
|
static bool esp_irq_enable;
|
||||||
static bool esp_message_received;
|
static bool esp_message_received;
|
||||||
|
|
Loading…
Reference in New Issue