Skip to content

Commit 25dff4f

Browse files
committed
Fix Bluetooth Serial
1 parent 3a4ec66 commit 25dff4f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

libraries/BluetoothSerial/src/BluetoothSerial.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
#include "esp_gap_bt_api.h"
2828
#include "esp_bt_device.h"
2929
#include "esp_spp_api.h"
30+
#include <esp_log.h>
31+
32+
#ifdef ARDUINO_ARCH_ESP32
33+
#include "esp32-hal-log.h"
34+
#endif
3035

3136
#define SPP_SERVER_NAME "ESP32_SPP_SERVER"
3237
#define SPP_TAG "BluetoothSerial"
@@ -208,8 +213,8 @@ int BluetoothSerial::read(void)
208213
if (xQueueReceive(SerialQueueBT, &c, 0)){
209214
return c;
210215
}
211-
return 0;
212216
}
217+
return 0;
213218
}
214219

215220
size_t BluetoothSerial::write(uint8_t c)

0 commit comments

Comments
 (0)