Skip to content

Commit 7ec1268

Browse files
committed
Add missing RTCM compiler guards
1 parent 9d5191d commit 7ec1268

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/u-blox_GNSS.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6048,6 +6048,7 @@ void DevUBLOXGNSS::checkCallbacks(void)
60486048
storageRTCM1005->automaticFlags.flags.bits.callbackDataValid = 0; // Mark the data as stale
60496049
}
60506050

6051+
#ifndef SFE_UBLOX_DISABLE_RTCM_LOGGING
60516052
if (rtcmInputStorage.rtcm1005CallbackPointer != nullptr) // If the pointer to the callback has been defined
60526053
if (rtcmInputStorage.flags.bits.dataValid1005 == 1) // If the copy of the data is valid
60536054
if (rtcmInputStorage.flags.bits.dataRead1005 == 0) // If the data has not been read
@@ -6063,6 +6064,7 @@ void DevUBLOXGNSS::checkCallbacks(void)
60636064
rtcmInputStorage.rtcm1006CallbackPointer(&rtcmInputStorage.rtcm1006); // Call the callback
60646065
rtcmInputStorage.flags.bits.dataRead1006 = 1; // Mark the data as read
60656066
}
6067+
#endif
60666068

60676069
checkCallbacksReentrant = false;
60686070
}

0 commit comments

Comments
 (0)