Test serial console demonstrating various API functions of WiConnect library.

Dependencies:   WiConnect mbed

Revision:
22:26420b641605
Parent:
12:3dd3a1be40c1
--- a/util/log/log.cpp	Tue Aug 26 23:57:16 2014 +0000
+++ b/util/log/log.cpp	Thu Oct 23 15:17:15 2014 -0700
@@ -86,10 +86,12 @@
 /*************************************************************************************************/
 void logWiconnectError(WiconnectResult result, const char *msg, ...)
 {
-    va_list args;
-    consoleSerial.write("[ERROR] ");
-    va_start(args, msg);
-    consoleSerial.printf("%s, (%d) %s\r\n", msg, result, Wiconnect::getWiconnectResultStr(result));
-    va_end(args);
+    va_list args;
+
+    consoleSerial.printf("[ERROR] (%d) %s. ", result, Wiconnect::getWiconnectResultStr(result));
+    va_start(args, msg);
+    consoleSerial.vprintf(msg, args);
+    va_end(args);
+    consoleSerial.write("\r\n");
 }