diff options
Diffstat (limited to 'megalogger')
-rw-r--r-- | megalogger/datalogger.h | 10 |
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 |