Skip to content

Commit 8a73029

Browse files
committed
Fix compiler warnings
1 parent c2263a2 commit 8a73029

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Firmware/RTK_Everywhere/Base.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ void storeRTCMForConsumers(uint8_t *rtcmData, uint16_t dataLength)
7575
dest += (size_t)rtcmConsumerBufferEntrySize * (size_t)rtcmConsumerBufferHead;
7676
memcpy(dest, rtcmData, dataLength); // Store the RTCM
7777
rtcmConsumerBufferLengths[rtcmConsumerBufferHead] = dataLength; // Store the length
78-
rtcmConsumerBufferHead++; // Increment the Head
79-
rtcmConsumerBufferHead %= rtcmConsumerBufferEntries; // Wrap
78+
rtcmConsumerBufferHead = rtcmConsumerBufferHead + 1; // Increment the Head
79+
rtcmConsumerBufferHead = rtcmConsumerBufferHead % rtcmConsumerBufferEntries; // Wrap
8080
}
8181
else
8282
{
@@ -109,8 +109,8 @@ void sendRTCMToConsumers()
109109
for (uint16_t x = 0; x < rtcmConsumerBufferLengths[rtcmConsumerBufferTail]; x++)
110110
espNowProcessRTCM(dest[x]);
111111

112-
rtcmConsumerBufferTail++; // Increment the Tail
113-
rtcmConsumerBufferTail %= rtcmConsumerBufferEntries; // Wrap
112+
rtcmConsumerBufferTail = rtcmConsumerBufferTail + 1; // Increment the Tail
113+
rtcmConsumerBufferTail = rtcmConsumerBufferTail % rtcmConsumerBufferEntries; // Wrap
114114
}
115115
}
116116

0 commit comments

Comments
 (0)