Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 25dff4f

Browse filesBrowse files
committed
Fix Bluetooth Serial
1 parent 3a4ec66 commit 25dff4f
Copy full SHA for 25dff4f

File tree

Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed

‎libraries/BluetoothSerial/src/BluetoothSerial.cpp

Copy file name to clipboardExpand all lines: libraries/BluetoothSerial/src/BluetoothSerial.cpp
+6-1Lines changed: 6 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.