Skip to content

Commit 0eb59c3

Browse files
authored
Merge pull request #774 from LeeLeahy2/no-authentication
Fix build with COMPILE_AUTHENTICATION commented out, add to testing
2 parents a2bc4d1 + 0e2fd18 commit 0eb59c3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Firmware/RTK_Everywhere/Bluetooth.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ void bluetoothStart(bool skipOnlineCheck)
612612
// Uncomment the next line to force deletion of all paired (bonded) devices
613613
// (This should only be necessary if you have changed the SSP pairing type)
614614
//settings.clearBtPairings = true;
615-
615+
616616
// Enable secure pairing without PIN :
617617
// iPhone displays Connection Unsuccessful - but then connects anyway...
618618
bluetoothSerialSpp->enableSSP(false, false);
@@ -650,6 +650,7 @@ void bluetoothStart(bool skipOnlineCheck)
650650
recordSystemSettings();
651651
}
652652

653+
#ifdef COMPILE_AUTHENTICATION
653654
esp_sdp_init();
654655

655656
esp_bluetooth_sdp_hdr_overlay_t record = {(esp_bluetooth_sdp_types_t)0};
@@ -663,6 +664,7 @@ void bluetoothStart(bool skipOnlineCheck)
663664
record.service_name = (char *)deviceName;
664665
// record.rfcomm_channel_number = 1; // Doesn't seem to help the failed connects
665666
esp_sdp_create_record((esp_bluetooth_sdp_record_t *)&record);
667+
#endif // COMPILE_AUTHENTICATION
666668
}
667669
}
668670

Firmware/RTK_Everywhere/check.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ set -e
1313
git reset --hard --quiet HEAD
1414
make
1515

16+
# MFi authentication
17+
sed -i 's|#define COMPILE_AUTHENTICATION|//#define COMPILE_AUTHENTICATION|' RTK_Everywhere.ino
18+
make
19+
git reset --hard --quiet HEAD
20+
1621
# Bluetooth
1722
sed -i 's|#define COMPILE_BT|//#define COMPILE_BT|' RTK_Everywhere.ino
1823
make

0 commit comments

Comments
 (0)