diff options
author | joeycastillo <joeycastillo@utexas.edu> | 2022-10-11 22:11:58 -0500 |
---|---|---|
committer | joeycastillo <joeycastillo@utexas.edu> | 2022-10-11 22:11:58 -0500 |
commit | f79741a85fa08dff34a41ae7c804d80dc800343c (patch) | |
tree | 924916e675f80645797b4ec282ffa8c49495b59c /apps/starter-project/app.c | |
parent | b399f4ca459d0487139f642c7b526fb4144cac8b (diff) | |
download | Sensor-Watch-f79741a85fa08dff34a41ae7c804d80dc800343c.tar.gz Sensor-Watch-f79741a85fa08dff34a41ae7c804d80dc800343c.tar.bz2 Sensor-Watch-f79741a85fa08dff34a41ae7c804d80dc800343c.zip |
add delay_ms function for simulator
Diffstat (limited to 'apps/starter-project/app.c')
-rw-r--r-- | apps/starter-project/app.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/starter-project/app.c b/apps/starter-project/app.c index 2efa6e72..9a4ef4fe 100644 --- a/apps/starter-project/app.c +++ b/apps/starter-project/app.c @@ -156,13 +156,13 @@ bool app_loop(void) { if (application_state.enter_sleep_mode) { // wait a moment for the user's finger to be off the button - main_loop_sleep(250); + delay_ms(250); // nap time :) watch_enter_deep_sleep_mode(); // we just woke up; wait a moment again for the user's finger to be off the button... - main_loop_sleep(250); + delay_ms(250); // and prevent ourselves from going right back to sleep. application_state.enter_sleep_mode = false; |