You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2020/04/14 12:22:49 UTC
[mynewt-mcumgr] branch master updated: zephyr: Convert k_timer
calls to new API (#77)
This is an automated email from the ASF dual-hosted git repository.
vipulrahane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-mcumgr.git
The following commit(s) were added to refs/heads/master by this push:
new 40341ab zephyr: Convert k_timer calls to new API (#77)
40341ab is described below
commit 40341abeeac9c93b4aa59c20ee183376c7920d7e
Author: de-nordic <56...@users.noreply.github.com>
AuthorDate: Tue Apr 14 14:22:41 2020 +0200
zephyr: Convert k_timer calls to new API (#77)
The new API does not accept integer types for timeouts, instead it uses
k_timeout_t structure.
Signed-off-by: Dominik Ermel <do...@nordicsemi.no>
---
cmd/os_mgmt/port/zephyr/src/zephyr_os_mgmt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/os_mgmt/port/zephyr/src/zephyr_os_mgmt.c b/cmd/os_mgmt/port/zephyr/src/zephyr_os_mgmt.c
index b650259..e6ac44d 100644
--- a/cmd/os_mgmt/port/zephyr/src/zephyr_os_mgmt.c
+++ b/cmd/os_mgmt/port/zephyr/src/zephyr_os_mgmt.c
@@ -91,6 +91,6 @@ zephyr_os_mgmt_reset_cb(struct k_timer *timer)
int
os_mgmt_impl_reset(unsigned int delay_ms)
{
- k_timer_start(&zephyr_os_mgmt_reset_timer, K_MSEC(delay_ms), 0);
+ k_timer_start(&zephyr_os_mgmt_reset_timer, K_MSEC(delay_ms), K_NO_WAIT);
return 0;
}