rainbow: fix RX thread refusing to exit

This commit is contained in:
Sylvain Gadrat 2022-01-20 10:44:09 +01:00 committed by contact@brokestudio.fr
parent 5390f868f5
commit 18a9a51a0e
1 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,8 @@
#include "../ines.h"
#include "rainbow_esp.h"
#include <atomic>
#undef RAINBOW_DEBUG
//define RAINBOW_DEBUG
@ -131,7 +133,7 @@ static SFORMAT SStateRegs[] =
// ESP interface
static EspFirmware *esp = NULL;
static bool esp_running;
static std::atomic<bool> esp_running;
static bool esp_enable;
static bool esp_irq_enable;
static bool esp_message_received;