Train status

Revision:
1:26a0a9220f01
Parent:
0:a59f55690685
Child:
2:58e7fabcba89
--- a/tokyoMetro.cpp	Fri Jun 26 09:35:34 2015 +0000
+++ b/tokyoMetro.cpp	Sat Jun 27 06:20:16 2015 +0000
@@ -11,16 +11,15 @@
 
 #if 0
 //Enable debug
-#define DBG(x, ...) std::printf("[HTTPClient : DBG]"x"\r\n", ##__VA_ARGS__);
-#define WARN(x, ...) std::printf("[HTTPClient : WARN]"x"\r\n", ##__VA_ARGS__);
+#define DBG(x, ...) std::printf("[tokyoMetro : DBG]"x"\r\n", ##__VA_ARGS__);
+#define WARN(x, ...) std::printf("[tokyoMetro : WARN]"x"\r\n", ##__VA_ARGS__);
 #else
 //Disable debug
 #define DBG(x, ...)
 #define WARN(x, ...)
 #endif
 
-#define ERR(x, ...) std::printf("[HTTPClient : ERR]"x"\r\n", ##__VA_ARGS__);
-
+#define ERR(x, ...) std::printf("[tokyoMetro : ERR]"x"\r\n", ##__VA_ARGS__);
 
 extern AlarmClock alarmclock ;
 static HTTPClient http;
@@ -84,7 +83,7 @@
     picojson::parse(trainStat, (const char *)buff, (const char *)buff+strlen(buff), &err);
     if (!err.empty()) {
         ERR("Metro Site Result ERROR: %s", err.c_str());
-        return  ;
+        return false ;
     }
     picojson::array array = trainStat.get<picojson::array>();
     for (picojson::array::iterator it = array.begin(); it != array.end(); it++)