From 0e2fd1809d40fda9eaca7674f09e1552170bc051 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Thu, 13 Nov 2025 10:32:58 -1000 Subject: [PATCH] Fix build with COMPILE_AUTHENTICATION commented out, add to testing --- Firmware/RTK_Everywhere/Bluetooth.ino | 4 +++- Firmware/RTK_Everywhere/check.sh | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Firmware/RTK_Everywhere/Bluetooth.ino b/Firmware/RTK_Everywhere/Bluetooth.ino index 72f62e411..b994cabc5 100644 --- a/Firmware/RTK_Everywhere/Bluetooth.ino +++ b/Firmware/RTK_Everywhere/Bluetooth.ino @@ -612,7 +612,7 @@ void bluetoothStart(bool skipOnlineCheck) // Uncomment the next line to force deletion of all paired (bonded) devices // (This should only be necessary if you have changed the SSP pairing type) //settings.clearBtPairings = true; - + // Enable secure pairing without PIN : // iPhone displays Connection Unsuccessful - but then connects anyway... bluetoothSerialSpp->enableSSP(false, false); @@ -650,6 +650,7 @@ void bluetoothStart(bool skipOnlineCheck) recordSystemSettings(); } +#ifdef COMPILE_AUTHENTICATION esp_sdp_init(); esp_bluetooth_sdp_hdr_overlay_t record = {(esp_bluetooth_sdp_types_t)0}; @@ -663,6 +664,7 @@ void bluetoothStart(bool skipOnlineCheck) record.service_name = (char *)deviceName; // record.rfcomm_channel_number = 1; // Doesn't seem to help the failed connects esp_sdp_create_record((esp_bluetooth_sdp_record_t *)&record); +#endif // COMPILE_AUTHENTICATION } } diff --git a/Firmware/RTK_Everywhere/check.sh b/Firmware/RTK_Everywhere/check.sh index 8d22f49a5..fb6aa3d50 100755 --- a/Firmware/RTK_Everywhere/check.sh +++ b/Firmware/RTK_Everywhere/check.sh @@ -13,6 +13,11 @@ set -e git reset --hard --quiet HEAD make +# MFi authentication +sed -i 's|#define COMPILE_AUTHENTICATION|//#define COMPILE_AUTHENTICATION|' RTK_Everywhere.ino +make +git reset --hard --quiet HEAD + # Bluetooth sed -i 's|#define COMPILE_BT|//#define COMPILE_BT|' RTK_Everywhere.ino make