Improve periodic status reporting (tune interval better, reset count when changing time)

This commit is contained in:
Allen Hill
2026-06-18 19:28:42 -07:00
parent c4648694fe
commit aefd539715
3 changed files with 57 additions and 20 deletions
+3 -3
View File
@@ -432,9 +432,9 @@ void print_help() {
"? - Print this message\n");
}
// Periodic interrupt with a 1 sec period; only enabled when playing
ISR(RTC_PIT_vect) {
// Periodic interrupt with a ~1 sec period; only enabled when playing
ISR(RTC_CNT_vect) {
AVCLAN_incrementTime();
enqueueStatus = true;
RTC.PITINTFLAGS = RTC_PI_bm;
RTC.INTFLAGS = RTC_OVF_bm;
}