File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -944,7 +944,7 @@ uint32_t max_idle_count = MAX_IDLE_TIME_COUNT;
944944bool bluetoothIncomingRTCM;
945945bool bluetoothOutgoingRTCM;
946946bool netIncomingRTCM;
947- bool netOutgoingRTCM;
947+ volatile bool netOutgoingRTCM;
948948volatile bool mqttClientDataReceived; // Flag for display
949949
950950uint16_t failedParserMessages_UBX;
@@ -1669,7 +1669,7 @@ void logUpdate()
16691669 {
16701670 // Calculate generation and write speeds every 5 seconds
16711671 uint64_t fileSizeDelta = logFileSize - lastLogSize;
1672- systemPrintf (" - Generation rate: %0.1fkB/s" , ((float )fileSizeDelta) / 5.0 / 1000.0 );
1672+ systemPrintf (" - Generation rate: %0.1fkB/s" , ((double )fileSizeDelta) / 5.0 / 1000.0 );
16731673 }
16741674 else
16751675 {
@@ -1686,7 +1686,8 @@ void logUpdate()
16861686 }
16871687 else
16881688 {
1689- log_d (" No increase in file size" );
1689+ if ((settings.enablePrintLogFileStatus ) && (!inMainMenu))
1690+ systemPrintf (" No increase in file size: %llu -> %llu\r\n " , lastLogSize, logFileSize);
16901691 logIncreasing = false ;
16911692
16921693 endSD (false , true ); // alreadyHaveSemaphore, releaseSemaphore
Original file line number Diff line number Diff line change @@ -1693,8 +1693,9 @@ void handleGnssDataTask(void *e)
16931693
16941694 logFileSize = logFile->fileSize (); // Update file size
16951695
1696- // Force file sync every 60s
1697- if ((millis () - lastUBXLogSyncTime) > 60000 )
1696+ // Force file sync every 60s - or every two seconds if the size is not increasing
1697+ if (((logFileSize == lastLogSize) && ((millis () - lastUBXLogSyncTime) > 2000 ))
1698+ || ((millis () - lastUBXLogSyncTime) > 60000 ))
16981699 {
16991700 baseStatusLedBlink (); // Blink LED to indicate logging activity
17001701
You can’t perform that action at this time.
0 commit comments