testsuite: busy_sim: Add alarm cancelation to stop function
Without cancelation next start may return error. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
42f003cebd
commit
5bd6050241
1 changed files with 3 additions and 0 deletions
|
@ -166,6 +166,9 @@ void busy_sim_stop(void)
|
||||||
k_work_cancel(&sim_work);
|
k_work_cancel(&sim_work);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err = counter_cancel_channel_alarm(config->counter, 0);
|
||||||
|
__ASSERT_NO_MSG(err == 0);
|
||||||
|
|
||||||
err = counter_stop(config->counter);
|
err = counter_stop(config->counter);
|
||||||
__ASSERT_NO_MSG(err == 0);
|
__ASSERT_NO_MSG(err == 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue