Fixed compilation without timesynch compiled in

This commit is contained in:
adamdunkels 2010-02-18 20:56:12 +00:00
parent 6df1e0ca58
commit 6b523f2446
2 changed files with 19 additions and 2 deletions

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: shell-sky.c,v 1.14 2010/01/14 15:05:40 joxe Exp $
* $Id: shell-sky.c,v 1.15 2010/02/18 20:56:12 adamdunkels Exp $
*/
/**
@ -143,7 +143,11 @@ PROCESS_THREAD(shell_sense_process, ev, data)
msg.len = 7;
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(0);
msg.light2 = light_sensor.value(1);
msg.temp = sht11_temp();