From c9e295932b1d39ff89f62530c08b58833c25960c Mon Sep 17 00:00:00 2001 From: Baohong Liu Date: Mon, 24 Oct 2016 16:35:46 -0700 Subject: [PATCH] tests: aonc: skip counter stopping Leave the aon counter in running state after the test. Arduino 101 loader assumes the counter is running. Stopping the counter will cause the next app to not start without a hard reset or power cycle. Jira: ZEP-961 Change-Id: Ia88f0c642b1df8dc5e2b1ee6c55ff0618b6127d0 Signed-off-by: Baohong Liu --- tests/drivers/aon_counter/src/main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/drivers/aon_counter/src/main.c b/tests/drivers/aon_counter/src/main.c index b8c0f125411..d6da483e87b 100644 --- a/tests/drivers/aon_counter/src/main.c +++ b/tests/drivers/aon_counter/src/main.c @@ -81,7 +81,13 @@ static void free_running_counter_example(void) "Always-on counter failed to increase " "during 500 loop"); } - counter_stop(aon_counter_dev); + + /* + * arduino 101 loader assumes the counter is running. + * If the counter is stopped, the next app you flash in + * can not start without a hard reset or power cycle. + * Let's leave the counter in running state. + */ } static void periodic_timer_example(void)