]> git.tnoah.ca Git - lora-radio.git/commitdiff
Allow ESP32 with BLE to compile
authorjacob.eva <x00010@disroot.org>
Wed, 11 Sep 2024 20:49:56 +0000 (21:49 +0100)
committerjacob.eva <x00010@disroot.org>
Wed, 11 Sep 2024 20:49:56 +0000 (21:49 +0100)
Utilities.h

index 84b2de842fa8e14d17ea87d9cc249a1c88798367..f1e832d38bfb189418f5f8a8feb77f61a7d7d4f3 100644 (file)
@@ -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);