mbed Weather Platform firmware http://mbed.org/users/okini3939/notebook/mbed-weather-platform-firmware/
Dependencies: ChaNFSSD EthernetNetIf I2CLEDDisp Agentbed ChaNFSUSB ILinterpreter mbed BMP085 WeatherMeters ConfigFile ChaNFS I2CLCD
Diff: main.cpp
- Revision:
- 7:f7c98d836f81
- Parent:
- 6:898c306f7990
--- a/main.cpp Sun Jan 15 13:28:12 2012 +0000 +++ b/main.cpp Thu Mar 15 02:42:39 2012 +0000 @@ -49,9 +49,16 @@ pc.baud(conf.baud); } + if (time(NULL) == -1) { + time_t sec; + if (! fstime(conf.dir, &sec)) { + set_time(sec); + } + } + init_sensor(); init_ilip(conf.dir); - init_file(); + init_log(); init_display(); if (init_net()) {