From 25dff4f044151f7f766c64b9d2ad90398472e6b3 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Tue, 3 Apr 2018 11:09:29 +0300 Subject: [PATCH] Fix Bluetooth Serial --- libraries/BluetoothSerial/src/BluetoothSerial.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)