summaryrefslogtreecommitdiff
path: root/megalogger
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2015-08-25 10:23:02 +1000
committerStanley Huang <stanleyhuangyc@gmail.com>2015-08-25 10:23:02 +1000
commitb8b89405a7fe4b373055217e17ba6c27c36705ad (patch)
treef58592a4319d230b5badf8d6d449c1584e2cad36 /megalogger
parent4c03f1ab6678f60b499cf322fcd1cf01e4bebbb4 (diff)
download2021-arduino-obd-b8b89405a7fe4b373055217e17ba6c27c36705ad.tar.gz
2021-arduino-obd-b8b89405a7fe4b373055217e17ba6c27c36705ad.tar.bz2
2021-arduino-obd-b8b89405a7fe4b373055217e17ba6c27c36705ad.zip
Fix compiliation issues
Diffstat (limited to 'megalogger')
-rw-r--r--megalogger/datalogger.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/megalogger/datalogger.h b/megalogger/datalogger.h
index 0944906..45b1cb7 100644
--- a/megalogger/datalogger.h
+++ b/megalogger/datalogger.h
@@ -126,7 +126,7 @@ public:
#if STREAM_FORMAT == FORMAT_BIN
LOG_DATA_COMM ld = {dataTime, pid, 1, 0, value};
ld.checksum = getChecksum((char*)&ld, 12);
- sendData((char*)&ld, 12);
+ sendData((const char*)&ld, 12);
#else
sendData(buf, len);
#endif
@@ -142,7 +142,7 @@ public:
#if STREAM_FORMAT == FORMAT_BIN
LOG_DATA_COMM ld = {dataTime, pid, 1, 0, value};
ld.checksum = getChecksum((char*)&ld, 12);
- sendData((uint8_t*)&ld, 12);
+ sendData((const char*)&ld, 12);
#else
sendData(buf, len);
#endif
@@ -158,7 +158,7 @@ public:
#if STREAM_FORMAT == FORMAT_BIN
LOG_DATA_COMM ld = {dataTime, pid, 1, 0, value};
ld.checksum = getChecksum((char*)&ld, 12);
- sendData((uint8_t*)&ld, 12);
+ sendData((const char*)&ld, 12);
#else
sendData(buf, len);
#endif
@@ -174,7 +174,7 @@ public:
#if STREAM_FORMAT == FORMAT_BIN
LOG_DATA_COMM ld = {dataTime, pid, 3, 0, {value1, value2, value3}};
ld.checksum = getChecksum((char*)&ld, 20);
- SerialRF.write((uint8_t*)&ld, 20);
+ sendData((const char*)&ld, 20);
#else
sendData(buf, len);
#endif
@@ -230,7 +230,6 @@ private:
}
return checksum;
}
-#if STREAM_FORMAT == FORMAT_TEXT
byte translatePIDName(uint16_t pid, char* text)
{
#if STREAM_FORMAT == FORMAT_TEXT
@@ -245,7 +244,6 @@ private:
#endif
return sprintf(text, "%X,", pid);
}
-#endif
#if ENABLE_DATA_LOG
uint32_t m_lastDataTime;
#endif