Log

Dependents:   oldheating gps motorhome heating

Revision:
9:d2c41855ed09
Parent:
8:e793e9005f89
Child:
10:cf815db8ed57
--- a/log.cpp	Fri Sep 22 13:40:50 2017 +0000
+++ b/log.cpp	Wed Oct 04 10:29:22 2017 +0000
@@ -141,7 +141,7 @@
         LogPush(t + '0'); LogPush(u + '0');
     }
 }
-void LogTime()
+static void logTimeOnly()
 {
     struct tm tm;
     ClockTmUtc(&tm);
@@ -156,16 +156,17 @@
     LogPush(':');
     pushuint2(tm.tm_sec);
 }
-void LogTimeCrLf(char * text)
+void LogTime(char *snd)
 {
-    LogTime();
-    LogF(" %s\r\n", text);
+    logTimeOnly();
+    LogPush(' ');
+    Log(snd);
 }
 void LogTimeF(char *fmt, ...)
 {
     va_list argptr;
     va_start(argptr, fmt);
-    LogTime();
+    logTimeOnly();
     LogPush(' ');
     LogV(fmt, argptr);
     va_end(argptr);