mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-07 01:13:18 +00:00
Improve periodic status reporting (tune interval better, reset count when changing time)
This commit is contained in:
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user