@@ -380,6 +380,19 @@ void paintSIV()
380380 }
381381}
382382
383+ // Draw log icon
384+ // Turn off icon if log file gets bigger
385+ void paintLogging ()
386+ {
387+ if (online.display == true )
388+ {
389+ if (logIncreasing == true )
390+ {
391+ oled.drawIcon (63 - Logging_Width, 47 - Logging_Height, Logging_Width, Logging_Height, Logging, sizeof (Logging), true ); // Draw the icon
392+ }
393+ }
394+ }
395+
383396// Base screen. Display BLE, rover, battery, HorzAcc and SIV
384397// Blink SIV until fix
385398void paintRoverNoFix ()
@@ -395,6 +408,8 @@ void paintRoverNoFix()
395408 paintHorizontalAccuracy ();
396409
397410 paintSIV ();
411+
412+ paintLogging ();
398413 }
399414}
400415
@@ -412,6 +427,8 @@ void paintRoverFix()
412427 paintHorizontalAccuracy ();
413428
414429 paintSIV ();
430+
431+ paintLogging ();
415432 }
416433}
417434
@@ -429,6 +446,8 @@ void paintRoverRTKFloat()
429446 paintHorizontalAccuracy ();
430447
431448 paintSIV ();
449+
450+ paintLogging ();
432451 }
433452}
434453
@@ -445,6 +464,8 @@ void paintRoverRTKFix()
445464 paintHorizontalAccuracy ();
446465
447466 paintSIV ();
467+
468+ paintLogging ();
448469 }
449470}
450471
@@ -464,6 +485,8 @@ void paintBaseTempSurveyNotStarted()
464485 paintHorizontalAccuracy (); // 2nd line
465486
466487 paintSIV ();
488+
489+ paintLogging ();
467490 }
468491}
469492
@@ -481,10 +504,6 @@ void paintBaseTempSurveyStarted()
481504 float meanAccuracy = i2cGNSS.getSurveyInMeanAccuracy (100 );
482505 int elapsedTime = i2cGNSS.getSurveyInObservationTime (100 );
483506
484- // Stopped. We either need a call back or we accept a 2s update to screen. Something is taking a lot of polling time.
485-
486- // deleteMeElapsedTime++;
487-
488507 oled.setFontType (0 );
489508 oled.setCursor (0 , 22 ); // x, y
490509 oled.print (" Mean:" );
@@ -500,6 +519,8 @@ void paintBaseTempSurveyStarted()
500519 oled.setCursor (30 , 36 ); // x, y
501520 oled.setFontType (1 );
502521 oled.print (elapsedTime);
522+
523+ paintLogging ();
503524 }
504525}
505526
@@ -527,10 +548,9 @@ void paintBaseTempTransmitting()
527548 oled.setCursor (29 , 36 ); // x, y
528549 oled.setFontType (1 ); // Set font to type 1: 8x16
529550
530- // Check for too many digits
531- if (rtcmPacketsSent > 9999 ) rtcmPacketsSent = 1 ;
532-
533551 oled.print (rtcmPacketsSent); // rtcmPacketsSent is controlled in processRTCM()
552+
553+ paintLogging ();
534554 }
535555}
536556
@@ -559,10 +579,9 @@ void paintBaseTempWiFiStarted()
559579 oled.setCursor (29 , 36 ); // x, y
560580 oled.setFontType (1 ); // Set font to type 1: 8x16
561581
562- // Check for too many digits
563- if (rtcmPacketsSent > 9999 ) rtcmPacketsSent = 1 ;
564-
565582 oled.print (rtcmPacketsSent); // rtcmPacketsSent is controlled in processRTCM()
583+
584+ paintLogging ();
566585 }
567586}
568587
@@ -592,10 +611,9 @@ void paintBaseTempWiFiConnected()
592611 oled.setCursor (29 , 36 ); // x, y
593612 oled.setFontType (1 ); // Set font to type 1: 8x16
594613
595- // Check for too many digits
596- if (rtcmPacketsSent > 9999 ) rtcmPacketsSent = 1 ;
597-
598614 oled.print (rtcmPacketsSent); // rtcmPacketsSent is controlled in processRTCM()
615+
616+ paintLogging ();
599617 }
600618}
601619
@@ -651,10 +669,9 @@ void paintBaseTempCasterConnected()
651669 oled.setCursor (29 , 36 ); // x, y
652670 oled.setFontType (1 ); // Set font to type 1: 8x16
653671
654- // Check for too many digits
655- if (rtcmPacketsSent > 9999 ) rtcmPacketsSent = 1 ;
656-
657672 oled.print (rtcmPacketsSent); // rtcmPacketsSent is controlled in processRTCM()
673+
674+ paintLogging ();
658675 }
659676}
660677
@@ -682,10 +699,9 @@ void paintBaseFixedTransmitting()
682699 oled.setCursor (29 , 36 ); // x, y
683700 oled.setFontType (1 ); // Set font to type 1: 8x16
684701
685- // Check for too many digits
686- if (rtcmPacketsSent > 9999 ) rtcmPacketsSent = 1 ;
687-
688702 oled.print (rtcmPacketsSent); // rtcmPacketsSent is controlled in processRTCM()
703+
704+ paintLogging ();
689705 }
690706}
691707
@@ -714,10 +730,9 @@ void paintBaseFixedWiFiStarted()
714730 oled.setCursor (29 , 36 ); // x, y
715731 oled.setFontType (1 ); // Set font to type 1: 8x16
716732
717- // Check for too many digits
718- if (rtcmPacketsSent > 9999 ) rtcmPacketsSent = 1 ;
719-
720733 oled.print (rtcmPacketsSent); // rtcmPacketsSent is controlled in processRTCM()
734+
735+ paintLogging ();
721736 }
722737}
723738
@@ -747,10 +762,9 @@ void paintBaseFixedWiFiConnected()
747762 oled.setCursor (29 , 36 ); // x, y
748763 oled.setFontType (1 ); // Set font to type 1: 8x16
749764
750- // Check for too many digits
751- if (rtcmPacketsSent > 9999 ) rtcmPacketsSent = 1 ;
752-
753765 oled.print (rtcmPacketsSent); // rtcmPacketsSent is controlled in processRTCM()
766+
767+ paintLogging ();
754768 }
755769}
756770
@@ -806,10 +820,9 @@ void paintBaseFixedCasterConnected()
806820 oled.setCursor (29 , 36 ); // x, y
807821 oled.setFontType (1 ); // Set font to type 1: 8x16
808822
809- // Check for too many digits
810- if (rtcmPacketsSent > 9999 ) rtcmPacketsSent = 1 ;
811-
812823 oled.print (rtcmPacketsSent); // rtcmPacketsSent is controlled in processRTCM()
824+
825+ paintLogging ();
813826 }
814827}
815828
0 commit comments