Skip to content

Commit 9d29684

Browse files
committed
DiscoverConnect: add SPP_ENABLED check
1 parent 8baf733 commit 9d29684

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: libraries/BluetoothSerial/examples/DiscoverConnect/DiscoverConnect.ino

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
2323
#endif
2424

25+
#if !defined(CONFIG_BT_SPP_ENABLED)
26+
#error Serial Bluetooth not available or not enabled. It is only available for the ESP32 chip.
27+
#endif
28+
2529
BluetoothSerial SerialBT;
2630

2731

0 commit comments

Comments
 (0)