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

Revision:
1:6c7141895545
Parent:
0:bdb53686c194
Child:
2:a3e5edf84f74
--- a/display.cpp	Mon Jul 04 15:16:45 2011 +0000
+++ b/display.cpp	Sun Jul 10 15:36:46 2011 +0000
@@ -1,3 +1,13 @@
+/*
+ * Weather Station - mbed Weather Platform
+ * Copyright (c) 2011 Hiroshi Suga
+ * Released under the MIT License: http://mbed.org/license/mit
+ */
+
+/** @file
+ * @brief Weather Station
+ */
+
 #include "mbed.h"
 #include "weather.h"
 #ifdef USE_DISPLAY
@@ -75,13 +85,19 @@
         if (lcd == NULL) return -1;
         lcd_flg = 1;
 
-        strncpy(leddisp_buf, VERSION, sizeof(leddisp_buf));
+#ifdef DEBUG
+        printf("LCD: %s\r\n", buf);
+#endif
     }
 
     if (cfg.getValue("LEDDISP_MESG", buf, sizeof(buf))) {
         leddisp = new I2CLEDDisp(i2c);
         if (leddisp == NULL) return -1;
         leddisp_flg = 1;
+        strncpy(leddisp_buf, VERSION, sizeof(leddisp_buf));
+#ifdef DEBUG
+        printf("LED disp: %s\r\n", buf);
+#endif
     }
 
 #endif