From 18a9a51a0ed230c18e5e62b6beed5b11d2f0572e Mon Sep 17 00:00:00 2001 From: Sylvain Gadrat Date: Thu, 20 Jan 2022 10:44:09 +0100 Subject: [PATCH] rainbow: fix RX thread refusing to exit --- src/boards/rainbow13.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/boards/rainbow13.cpp b/src/boards/rainbow13.cpp index 437188f7..75294e2c 100644 --- a/src/boards/rainbow13.cpp +++ b/src/boards/rainbow13.cpp @@ -26,6 +26,8 @@ #include "../ines.h" #include "rainbow_esp.h" +#include + #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 esp_running; static bool esp_enable; static bool esp_irq_enable; static bool esp_message_received;