Fixed compilation without timesynch compiled in
This commit is contained in:
parent
f5c48751b5
commit
e18f739f04
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue