@@ -130,10 +130,6 @@ void F9PSerialReadTask(void *e)
130130 // Read the data from UART1
131131 incomingData = serialGNSS.read ();
132132
133- // For testing: Inject bad data once in awhile
134- // if(random(0,10000) == 1) //0.01% failure rate
135- // incomingData = 0xAA; //Bogus data
136-
137133 // Save the data byte
138134 parse.buffer [parse.length ++] = incomingData;
139135 parse.length %= PARSE_BUFFER_LENGTH;
@@ -146,8 +142,6 @@ void F9PSerialReadTask(void *e)
146142 parse.state (&parse, incomingData);
147143 }
148144
149- // emptyRingBuffer(true); //Empty and record to SD
150-
151145 delay (1 );
152146 taskYIELD ();
153147 }
@@ -222,9 +216,6 @@ void processUart1Message(PARSE_STATE * parse, uint8_t type)
222216 // Display the dataHead offset
223217 if (settings.enablePrintRingBufferOffsets && (!inMainMenu))
224218 systemPrintf (" %4d\r\n " , dataHead);
225-
226- // Start emptying the ring buffer
227- // emptyRingBuffer(false);
228219}
229220
230221// If new data is in the ringBuffer, dole it out to appropriate interface
@@ -280,7 +271,6 @@ void handleGNSSDataTask(void *e)
280271 // Send data over Bluetooth
281272 // ----------------------------------------------------------------------
282273
283- // If we are actively survey-in then do not pass NMEA data from ZED to phone
284274 if (!btConnected)
285275 // Discard the data
286276 btTail = dataHead;
0 commit comments