From 9cc5a0098e8b2a403e10a72adc504a95661a3a10 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Mon, 7 Jul 2008 23:46:12 +0000 Subject: [PATCH] Use the clock_second() function to get time in seconds --- apps/shell/shell.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/shell/shell.c b/apps/shell/shell.c index 5d3ef39b9..755ff2181 100644 --- a/apps/shell/shell.c +++ b/apps/shell/shell.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: shell.c,v 1.10 2008/07/03 21:15:12 adamdunkels Exp $ + * $Id: shell.c,v 1.11 2008/07/07 23:46:12 adamdunkels Exp $ */ /** @@ -520,13 +520,13 @@ unsigned long shell_time(void) { /* XXX todo: fix process to avoid wrap-around */ - return clock_time() / CLOCK_SECOND + time_offset; + return clock_seconds() + time_offset; } /*---------------------------------------------------------------------------*/ void shell_set_time(unsigned long seconds) { - time_offset = seconds - clock_time() / CLOCK_SECOND; + time_offset = seconds - clock_seconds(); } /*---------------------------------------------------------------------------*/ void