Skip to content

Commit 3d96900

Browse files
committed
Initialize rbOffsetArray. Probably redundant?
1 parent bb24444 commit 3d96900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firmware/RTK_Everywhere/RTK_Everywhere.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ const int btReadTaskStackSize = 4000;
479479
// Array of start-of-sentence offsets into the ring buffer
480480
#define AMOUNT_OF_RING_BUFFER_DATA_TO_DISCARD (settings.gnssHandlerBufferSize >> 2)
481481
#define AVERAGE_SENTENCE_LENGTH_IN_BYTES 32
482-
RING_BUFFER_OFFSET *rbOffsetArray;
482+
RING_BUFFER_OFFSET *rbOffsetArray = nullptr;
483483
uint16_t rbOffsetEntries;
484484

485485
uint8_t *ringBuffer; // Buffer for reading from F9P. At 230400bps, 23040 bytes/s. If SD blocks for 250ms, we need 23040

0 commit comments

Comments
 (0)