aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/rtc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/rtc.rs')
-rw-r--r--app/src/rtc.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/rtc.rs b/app/src/rtc.rs
index 0d39d31..79e450a 100644
--- a/app/src/rtc.rs
+++ b/app/src/rtc.rs
@@ -1,4 +1,5 @@
use core::sync::atomic::{AtomicUsize, Ordering};
+use log;
use trinket_m0::{clock::GenericClockController, RTC};
struct Clock(AtomicUsize);
@@ -67,5 +68,7 @@ fn handler(rtc: &mut RTC) {
CLOCK.set(TICKS);
}
ADD = !ADD;
+
+ log::logger().flush();
}
}