Unprotected pingFlag

It was being called twice when ESP-NOW and LoRa were both enabled
pull/142/head
Timm Bogner 1 year ago
parent 83bf1fe781
commit 2fd33b920a

@ -48,6 +48,7 @@ uint8_t newCmd = cmd_clear;
DataReading fdrsData[256]; // buffer for loadFDRS()
uint8_t data_count = 0;
bool pingFlag = false;
// Function Prototypes needed due to #ifdefs being moved outside of function definitions in header files
void broadcastLoRa();

@ -25,7 +25,6 @@ uint8_t timeMasterEspNow[6];
uint8_t ESPNOW1[] = {MAC_PREFIX, ESPNOW_NEIGHBOR_1};
uint8_t ESPNOW2[] = {MAC_PREFIX, ESPNOW_NEIGHBOR_2};
extern time_t now;
bool pingFlag = false;
// Set ESP-NOW send and receive callbacks for either ESP8266 or ESP32

@ -93,7 +93,6 @@ const uint8_t mac_prefix[] = {MAC_PREFIX};
const uint8_t selfAddress[] = {MAC_PREFIX, UNIT_MAC};
#endif
bool pingFlag = false;
bool transmitFlag = false; // flag to indicate transmission or reception state
volatile bool enableInterrupt = true; // disable interrupt when it's not needed
volatile bool operationDone = false; // flag to indicate that a packet was sent or received

Loading…
Cancel
Save