diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2022-02-13 14:00:50 -0500 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2022-02-13 14:01:21 -0500 |
commit | 203850104d9ec2929cc7f0d4e280107986248006 (patch) | |
tree | e1e05ddb0a469ac32971efe17290bba9a1339708 /watch-library/hardware | |
parent | 7815b0f64e1bea374260307d61b1de7bcc5e6744 (diff) | |
download | Sensor-Watch-203850104d9ec2929cc7f0d4e280107986248006.tar.gz Sensor-Watch-203850104d9ec2929cc7f0d4e280107986248006.tar.bz2 Sensor-Watch-203850104d9ec2929cc7f0d4e280107986248006.zip |
remove obsolete low battery check
Diffstat (limited to 'watch-library/hardware')
-rw-r--r-- | watch-library/hardware/watch/watch.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/watch-library/hardware/watch/watch.c b/watch-library/hardware/watch/watch.c index 791fd974..934d5623 100644 --- a/watch-library/hardware/watch/watch.c +++ b/watch-library/hardware/watch/watch.c @@ -24,21 +24,14 @@ #include "watch.h" -bool battery_is_low = false; - // receives interrupts from MCLK, OSC32KCTRL, OSCCTRL, PAC, PM, SUPC and TAL, whatever that is. void SYSTEM_Handler(void) { if (SUPC->INTFLAG.bit.BOD33DET) { - battery_is_low = true; SUPC->INTENCLR.bit.BOD33DET = 1; SUPC->INTFLAG.reg &= ~SUPC_INTFLAG_BOD33DET; } } -bool watch_is_battery_low(void) { - return battery_is_low; -} - bool watch_is_buzzer_or_led_enabled(void){ return hri_mclk_get_APBCMASK_TCC0_bit(MCLK); } |