Merge upstream/dev (8 commits) [upstream-sync]
pub-release / release (push) Successful in 38m23s

This commit is contained in:
upstream-sync-bot committed 2026-11-25 17:05:40 +00:00
commit 8449357433
4 files changed
+24

No files matched your search

+3
View File
@@ -456,12 +456,14 @@ public:
bool hw_gps_state = nmea != NULL && nmea->isHardwareEnabled();
uint32_t period = nmea != NULL ? nmea->getGpsPeriod() : 0;
char fix_buf[12] = "";
bool hasFix = false;
if (nmea != NULL) {
uint32_t fix_age = nmea->getLastFixAge();
if (fix_age == UINT32_MAX) {
strcpy(fix_buf, "no fix");
} else {
formatFixAge(fix_buf, sizeof(fix_buf), fix_age);
hasFix = true;
}
}
if (nmea != NULL && nmea->hasHardwareEnableState() && gps_state != hw_gps_state) {
@@ -490,6 +492,7 @@ public:
display.setColor(UIColor::primary_txt);
sprintf(buf, "%d", nmea->satellitesCount());
display.drawTextRightAlign(display.width()-1, y, buf);
if (!hasFix) return 5000;
y = y + 12;
display.setColor(UIColor::secondary_txt);
display.drawTextLeftAlign(0, y, "pos");