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
//Attempt to access file system. This avoids collisions with file writing from other functions like recordSystemSettingsToFile() and F9PSerialReadTask()
243
-
if (xSemaphoreTake(xFATSemaphore, fatSemaphore_maxWait_ms) == pdPASS)
243
+
if (xSemaphoreTake(xFATSemaphore, fatSemaphore_longWait_ms) == pdPASS)
//Attempt to access file system. This avoids collisions with file writing from other functions like recordSystemSettingsToFile() and F9PSerialReadTask()
396
+
if (xSemaphoreTake(xFATSemaphore, fatSemaphore_shortWait_ms) == pdPASS)
399
397
{
400
-
Serial.printf(" reached max log time %d", settings.maxLogTime_minutes);
401
-
}
402
-
403
-
Serial.println();
398
+
fileSize = ubxFile.fileSize();
404
399
405
-
totalWriteTime = 0; //Reset write time every 5s
400
+
xSemaphoreGive(xFATSemaphore);
401
+
}
406
402
407
-
if (ubxFile.fileSize() > lastLogSize)
403
+
if (fileSize > 0)
408
404
{
409
-
lastLogSize = ubxFile.fileSize();
410
-
logIncreasing = true;
405
+
lastFileReport = millis();
406
+
Serial.printf("UBX file size: %ld", fileSize);
407
+
408
+
if ((systemTime_minutes - startLogTime_minutes) < settings.maxLogTime_minutes)
409
+
{
410
+
//Calculate generation and write speeds every 5 seconds
Copy file name to clipboardExpand all lines: Firmware/RTK_Surveyor/System.ino
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -624,7 +624,7 @@ bool createTestFile()
624
624
char testFileName[40] = "testfile.txt";
625
625
626
626
//Attempt to write to file system. This avoids collisions with file writing from other functions like recordSystemSettingsToFile() and F9PSerialReadTask()
627
-
if (xSemaphoreTake(xFATSemaphore, fatSemaphore_maxWait_ms) == pdPASS)
627
+
if (xSemaphoreTake(xFATSemaphore, fatSemaphore_shortWait_ms) == pdPASS)
628
628
{
629
629
if (testFile.open(testFileName, O_CREAT | O_APPEND | O_WRITE) == true)
//Attempt to write to file system. This avoids collisions with file writing from other functions like recordSystemSettingsToFile() and F9PSerialReadTask()
62
-
if (xSemaphoreTake(xFATSemaphore, fatSemaphore_maxWait_ms) == pdPASS)
62
+
if (xSemaphoreTake(xFATSemaphore, fatSemaphore_longWait_ms) == pdPASS)
63
63
{
64
64
Serial.println(F("Files found (date time size name):\n\r"));
65
65
sd.ls(LS_R | LS_DATE | LS_SIZE);
@@ -83,7 +83,7 @@ void menuMain()
83
83
strcat(settingsFileName, "_Settings.txt");
84
84
85
85
//Attempt to write to file system. This avoids collisions with file writing from other functions like recordSystemSettingsToFile() and F9PSerialReadTask()
86
-
if (xSemaphoreTake(xFATSemaphore, fatSemaphore_maxWait_ms) == pdPASS)
86
+
if (xSemaphoreTake(xFATSemaphore, fatSemaphore_longWait_ms) == pdPASS)
Copy file name to clipboardExpand all lines: Firmware/RTK_Surveyor/menuTest.ino
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ void menuTest()
50
50
if (settings.enableSD && online.microSD)
51
51
{
52
52
//Attempt to access file system. This avoids collisions with file writing from other functions like recordSystemSettingsToFile() and F9PSerialReadTask()
53
-
if (xSemaphoreTake(xFATSemaphore, fatSemaphore_maxWait_ms) == pdPASS)
53
+
if (xSemaphoreTake(xFATSemaphore, fatSemaphore_longWait_ms) == pdPASS)
54
54
{
55
55
Serial.println(F("Files found (date time size name):\n\r"));
0 commit comments