You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serial.begin(115200); //UART0 for programming and debugging
252
-
Serial.setRxBufferSize(SERIAL_SIZE_RX);
253
-
Serial.setTimeout(1);
254
254
255
255
Wire.begin(); //Start I2C on core 1
256
256
Wire.setClock(400000);
257
257
258
-
beginUART2(); //Start UART2 on core 0
258
+
beginUART2(); //Start UART2 on core 0, used to receive serial from ZED and pass out over SPP
259
259
260
260
beginLEDs(); //LED and PWM setup
261
261
@@ -289,6 +289,7 @@ void setup()
289
289
danceLEDs(); //Turn on LEDs like a car dashboard
290
290
291
291
//i2cGNSS.enableDebugging(); //Enable debug messages over Serial (default)
292
+
i2cGNSS.enableDebugging(Serial, true); //Enable only the critical debug messages over Serial
292
293
}
293
294
294
295
voidloop()
@@ -346,7 +347,7 @@ void updateLogs()
346
347
347
348
i2cGNSS.extractFileBufferData((uint8_t *)&myBuffer, sdWriteSize); // Extract exactly sdWriteSize bytes from the UBX file buffer and put them into myBuffer
348
349
349
-
int bytesWritten = ubxFile.write(myBuffer, sdWriteSize); // Write exactly sdWriteSize bytes from myBuffer to the ubxDataFile on the SD card
350
+
ubxFile.write(myBuffer, sdWriteSize); // Write exactly sdWriteSize bytes from myBuffer to the ubxDataFile on the SD card
350
351
351
352
if (settings.frequentFileAccessTimestamps == true)
352
353
updateDataFileAccess(&ubxFile); // Update the file access time & date
@@ -356,7 +357,10 @@ void updateLogs()
356
357
{
357
358
lastUBXLogSyncTime = millis();
358
359
digitalWrite(baseStatusLED, !digitalRead(baseStatusLED)); //Blink LED to indicate logging activity
0 commit comments