From: jacob.eva Date: Wed, 11 Sep 2024 20:49:56 +0000 (+0100) Subject: Allow ESP32 with BLE to compile X-Git-Url: https://git.tnoah.ca/?a=commitdiff_plain;h=07b7e28c7406ab39fc93390605a6acf4fa6cc369;p=lora-radio.git Allow ESP32 with BLE to compile --- diff --git a/Utilities.h b/Utilities.h index 84b2de8..f1e832d 100644 --- a/Utilities.h +++ b/Utilities.h @@ -579,6 +579,7 @@ void serial_write(uint8_t byte) { } else { SerialBT.write(byte); + #if MCU_VARIANT == MCU_NRF52 && HAS_BLE // This ensures that the TX buffer is flushed after a frame is queued in serial. // serial_in_frame is used to ensure that the flush only happens at the end of the frame if (serial_in_frame && byte == FEND) { @@ -588,6 +589,7 @@ void serial_write(uint8_t byte) { else if (!serial_in_frame && byte == FEND) { serial_in_frame = true; } + #endif } #else Serial.write(byte);