From e18f739f041432f8458078647b0a85e1e69ab07f Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Thu, 18 Feb 2010 21:02:30 +0000 Subject: [PATCH] Fixed compilation without timesynch compiled in --- examples/sky-shell/sky-shell.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/sky-shell/sky-shell.c b/examples/sky-shell/sky-shell.c index 15f6a217a..d19afa65f 100644 --- a/examples/sky-shell/sky-shell.c +++ b/examples/sky-shell/sky-shell.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: sky-shell.c,v 1.17 2010/02/15 17:47:01 adamdunkels Exp $ + * $Id: sky-shell.c,v 1.18 2010/02/18 21:02:30 adamdunkels Exp $ */ /** @@ -179,7 +179,11 @@ PROCESS_THREAD(shell_sky_alldata_process, ev, data) msg.len = sizeof(struct sky_alldata_msg) / sizeof(uint16_t); msg.clock = clock_time(); +#if TIMESYNCH_CONF_ENABLED msg.timesynch_time = timesynch_time(); +#else /* TIMESYNCH_CONF_ENABLED */ + msg.timesynch_time = 0; +#endif /* TIMESYNCH_CONF_ENABLED */ msg.light1 = light_sensor.value(LIGHT_SENSOR_PHOTOSYNTHETIC); msg.light2 = light_sensor.value(LIGHT_SENSOR_TOTAL_SOLAR); msg.temp = sht11_sensor.value(SHT11_SENSOR_TEMP);