From 821eb39d129954138ae929865a2b52997bce089b Mon Sep 17 00:00:00 2001
From: Stanley Huang <stanleyhuangyc@gmail.com>
Date: Wed, 24 May 2017 21:10:53 +1000
Subject: Update

---
 esplogger/datalogger.h | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

(limited to 'esplogger')

diff --git a/esplogger/datalogger.h b/esplogger/datalogger.h
index 6c4b60a..bf4ccb1 100644
--- a/esplogger/datalogger.h
+++ b/esplogger/datalogger.h
@@ -80,12 +80,6 @@ public:
         m_lastDataTime = 0;
 #if ENABLE_DATA_CACHE
         cacheBytes = 0;
-#endif
-    }
-    void initSender()
-    {
-#if ENABLE_DATA_OUT
-        SerialRF.begin(STREAM_BAUDRATE);
 #endif
     }
     byte genTimestamp(char* buf, bool absolute)
@@ -104,12 +98,12 @@ public:
     {
 #if ENABLE_DATA_LOG
 #if STREAM_FORMAT == FORMAT_BIN
-        dataSize += sdfile.write(buf, len);
+        dataSize += sdfile.write((uint8_t*)buf, len);
 #else
         char tmp[12];
         byte n = genTimestamp(tmp, dataSize == 0);
-        dataSize += sdfile.write(tmp, n);
-        dataSize += sdfile.write(buf, len);
+        dataSize += sdfile.write((uint8_t*)tmp, n);
+        dataSize += sdfile.write((uint8_t*)buf, len);
         sdfile.println();
         dataSize += 3;
 #endif
@@ -128,7 +122,7 @@ public:
         }
 #endif
 #if ENABLE_DATA_OUT
-        SerialRF.write(buf, len);
+        SerialRF.write((uint8_t*)buf, len);
         SerialRF.println();
 #endif
     }
-- 
cgit v1.2.3