From f79741a85fa08dff34a41ae7c804d80dc800343c Mon Sep 17 00:00:00 2001 From: joeycastillo Date: Tue, 11 Oct 2022 22:11:58 -0500 Subject: add delay_ms function for simulator --- apps/starter-project/app.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/starter-project/app.c') 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; -- cgit v1.2.3