summaryrefslogtreecommitdiffstats
path: root/watch-library/watch/watch_deepsleep.c
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-10-03 20:37:15 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-10-03 20:47:15 -0400
commit4300dff61631143f794f186cadb222bdf5f75a06 (patch)
tree85608336dcb17dc2140c33c092eb81c114d9df49 /watch-library/watch/watch_deepsleep.c
parent64485b4255271dca8d6d38a91fa9ace610bf7222 (diff)
downloadSensor-Watch-4300dff61631143f794f186cadb222bdf5f75a06.tar.gz
Sensor-Watch-4300dff61631143f794f186cadb222bdf5f75a06.tar.bz2
Sensor-Watch-4300dff61631143f794f186cadb222bdf5f75a06.zip
launcher: first crack at low power 'screensaver' mode
Diffstat (limited to 'watch-library/watch/watch_deepsleep.c')
-rw-r--r--watch-library/watch/watch_deepsleep.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/watch-library/watch/watch_deepsleep.c b/watch-library/watch/watch_deepsleep.c
index b7da82ee..9ca53db0 100644
--- a/watch-library/watch/watch_deepsleep.c
+++ b/watch-library/watch/watch_deepsleep.c
@@ -151,11 +151,8 @@ void _watch_disable_all_peripherals_except_slcd() {
MCLK->APBCMASK.reg &= ~MCLK_APBCMASK_SERCOM3;
}
-void watch_enter_shallow_sleep(char *message) {
- if (message != NULL) {
- watch_display_string(" ", 0);
- watch_display_string(message, 0);
- } else {
+void watch_enter_shallow_sleep(bool display_on) {
+ if (!display_on) {
slcd_sync_deinit(&SEGMENT_LCD_0);
hri_mclk_clear_APBCMASK_SLCD_bit(SLCD);
}