summaryrefslogtreecommitdiffstats
path: root/ble/src
diff options
context:
space:
mode:
Diffstat (limited to 'ble/src')
-rw-r--r--ble/src/rtc.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/ble/src/rtc.rs b/ble/src/rtc.rs
index 8fe581f..7b6faa2 100644
--- a/ble/src/rtc.rs
+++ b/ble/src/rtc.rs
@@ -62,7 +62,8 @@ fn handler<R>(rtc: &mut Rtc<R, rtc::Started>)
where
R: rtc::Instance,
{
- let _ = rtc.get_event_triggered(RtcInterrupt::Tick, true);
- CLOCK.add(1);
- log::logger().flush();
+ if rtc.get_event_triggered(RtcInterrupt::Tick, true) {
+ CLOCK.add(1);
+ log::logger().flush();
+ }
}