diff --git a/libraries/BluetoothSerial/src/BluetoothSerial.cpp b/libraries/BluetoothSerial/src/BluetoothSerial.cpp index 49cb7cbc..6c7d9c3c 100644 --- a/libraries/BluetoothSerial/src/BluetoothSerial.cpp +++ b/libraries/BluetoothSerial/src/BluetoothSerial.cpp @@ -27,6 +27,11 @@ #include "esp_gap_bt_api.h" #include "esp_bt_device.h" #include "esp_spp_api.h" +#include + +#ifdef ARDUINO_ARCH_ESP32 +#include "esp32-hal-log.h" +#endif #define SPP_SERVER_NAME "ESP32_SPP_SERVER" #define SPP_TAG "BluetoothSerial" @@ -208,8 +213,8 @@ int BluetoothSerial::read(void) if (xQueueReceive(SerialQueueBT, &c, 0)){ return c; } - return 0; } + return 0; } size_t BluetoothSerial::write(uint8_t c)