You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/08/19 22:12:09 UTC
[10/12] incubator-mynewt-core git commit: slinky;
time-based waits must use OS_TICKS_PER_SEC.
slinky; time-based waits must use OS_TICKS_PER_SEC.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/5213aca4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/5213aca4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/5213aca4
Branch: refs/heads/develop
Commit: 5213aca4e57b02223f65cc6e2fa4d9a14ea752b3
Parents: 4181439
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Aug 19 15:02:19 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Aug 19 15:11:50 2016 -0700
----------------------------------------------------------------------
apps/slinky/src/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/5213aca4/apps/slinky/src/main.c
----------------------------------------------------------------------
diff --git a/apps/slinky/src/main.c b/apps/slinky/src/main.c
index fd68aa4..1ee66ac 100755
--- a/apps/slinky/src/main.c
+++ b/apps/slinky/src/main.c
@@ -220,7 +220,7 @@ task1_handler(void *arg)
++g_task1_loops;
/* Wait one second */
- os_time_delay(1000);
+ os_time_delay(OS_TICKS_PER_SEC);
/* Toggle the LED */
prev_pin_state = hal_gpio_read(g_led_pin);