Skip to content

Commit 5a8a656

Browse files
committed
Add compile guard
1 parent c8a7646 commit 5a8a656

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Firmware/RTK_Everywhere/Bluetooth.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,9 +443,11 @@ void BTConfirmRequestCallback(uint32_t numVal) {
443443
if (bluetoothGetState() == BT_OFF)
444444
return;
445445

446+
// TODO: if the RTK device has an OLED, we should display the PIN so user can confirm
446447
systemPrintf("Device sent PIN: %06lu. Sending confirmation\r\n", numVal);
448+
#ifdef COMPILE_BT
447449
bluetoothSerialSpp->confirmReply(true); // AUTO_PAIR - equivalent to enableSSP(false, true);
448-
// TODO: if the RTK device has an OLED, we should display the PIN so user can confirm
450+
#endif // COMPILE_BT
449451
}
450452

451453
void deviceNameSpacesToUnderscores()

0 commit comments

Comments
 (0)