summaryrefslogtreecommitdiffstats
path: root/watch-library/hardware/hal/src
diff options
context:
space:
mode:
Diffstat (limited to 'watch-library/hardware/hal/src')
-rw-r--r--watch-library/hardware/hal/src/hal_sleep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/watch-library/hardware/hal/src/hal_sleep.c b/watch-library/hardware/hal/src/hal_sleep.c
index 89472f15..fd9c84cb 100644
--- a/watch-library/hardware/hal/src/hal_sleep.c
+++ b/watch-library/hardware/hal/src/hal_sleep.c
@@ -57,6 +57,9 @@ int sleep(const uint8_t mode)
if (ERR_NONE != _set_sleep_mode(mode))
return ERR_INVALID_ARG;
+ // wait for the mode set to actually take, per chip doc.
+ while(_get_sleep_mode() != mode);
+
_go_to_sleep();
return ERR_NONE;