File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2610,7 +2610,7 @@ void GNSS_MOSAIC::update()
2610
2610
{
2611
2611
updateSD (); // Check if the card has been removed / inserted
2612
2612
2613
- if (_diskStatusSeen) // Check if the DiskStatus SBF message has been processed
2613
+ if (_diskStatusSeen) // Check if the DiskStatus SBF message has been seen
2614
2614
{
2615
2615
// If previousFreeSpace hasn't been initialized, initialize it
2616
2616
if (previousFreeSpace == 0 )
@@ -2637,6 +2637,12 @@ void GNSS_MOSAIC::update()
2637
2637
previousFreeSpace = sdFreeSpace;
2638
2638
}
2639
2639
}
2640
+ else
2641
+ {
2642
+ // Disk status not seen
2643
+ // (Unmounting the SD card will prevent _diskStatusSeen from going true)
2644
+ logIncreasing = false ;
2645
+ }
2640
2646
2641
2647
sdCardSizeLastCheck = millis (); // Update the timer
2642
2648
_diskStatusSeen = false ; // Clear the flag
You can’t perform that action at this time.
0 commit comments