Merge pull request #142 from alexey-lysiuk/redraw-date-time

Redraw date/time every minute
pull/143/head
erikkaashoek 3 months ago committed by GitHub
commit 71c541f462
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -304,6 +304,18 @@ static THD_FUNCTION(Thread1, arg)
}
}
}
#ifdef __USE_RTC__
static uint32_t minutes;
const uint32_t tr = rtc_get_tr_bin();
const uint32_t now = RTC_TR_MIN(tr);
if (minutes != now) {
minutes = now;
redraw_request |= REDRAW_CAL_STATUS;
}
#endif // __USE_RTC__
// plot trace and other indications as raster
draw_all(completed); // flush markmap only if scan completed to prevent
// remaining traces

Loading…
Cancel
Save

Powered by TurnKey Linux.