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:
- 5:90f840432195
- Parent:
- 2:a3e5edf84f74
- Child:
- 6:898c306f7990
diff -r 46ad190e6328 -r 90f840432195 main.cpp --- a/main.cpp Fri Oct 07 14:55:17 2011 +0000 +++ b/main.cpp Wed Oct 12 02:18:00 2011 +0000 @@ -87,7 +87,11 @@ format_str(conf.csv_mesg, csv, sizeof_1(csv)); pc.printf(csv); pc.printf("\r\n"); - write_log(csv); + if (write_log(csv)) { + pc.printf("error: can't open file.\r\n"); + } + + // I2C LCD or LED update_display(); // in/out