Skip to content

Commit b131bb3

Browse files
committed
Add compile guard for Apple Auth
Allow compile when Bluetooth is turned off.
1 parent 54bdf94 commit b131bb3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Firmware/RTK_Everywhere/Tasks.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,7 @@ void processUart1Message(SEMP_PARSE_STATE *parse, uint16_t type)
832832
// If the Apple Accessory is sending the data to the EA Session,
833833
// discard this GSA / GSV. Bad things would happen if we were to
834834
// manipulate latestEASessionData while appleAccessory is using it.
835+
#ifdef COMPILE_AUTHENTICATION
835836
if (appleAccessory->latestEASessionDataIsBlocking() == false)
836837
{
837838
size_t spaceAvailable = latestEASessionDataMaxLen - strlen(latestEASessionData);
@@ -862,6 +863,7 @@ void processUart1Message(SEMP_PARSE_STATE *parse, uint16_t type)
862863
}
863864
else if (settings.debugNetworkLayer)
864865
systemPrintf("Discarding %d GSA/GSV bytes - latestEASessionDataIsBlocking\r\n", parse->length);
866+
#endif //COMPILE_AUTHENTICATION
865867
}
866868
}
867869

0 commit comments

Comments
 (0)