summaryrefslogtreecommitdiff
path: root/tester/datalogger.h
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2015-05-19 21:23:17 +1000
committerStanley Huang <stanleyhuangyc@gmail.com>2015-05-19 21:23:17 +1000
commit063932b9ebad74d711049bf8f2b3727956a17c93 (patch)
tree0313dd92e9bb096810a427d86ebb5a1ba4a3ec01 /tester/datalogger.h
parentc7cb921f361b9fcdb70c15c41a7ae9ea1351817c (diff)
download2021-arduino-obd-063932b9ebad74d711049bf8f2b3727956a17c93.tar.gz
2021-arduino-obd-063932b9ebad74d711049bf8f2b3727956a17c93.tar.bz2
2021-arduino-obd-063932b9ebad74d711049bf8f2b3727956a17c93.zip
Update Tester
Diffstat (limited to 'tester/datalogger.h')
-rw-r--r--tester/datalogger.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/tester/datalogger.h b/tester/datalogger.h
index 241d3cf..d8c9449 100644
--- a/tester/datalogger.h
+++ b/tester/datalogger.h
@@ -97,9 +97,9 @@ public:
{
char buf[16];
#if STREAM_FORMAT == FORMAT_TEXT
- sprintf(buf + translatePIDName(pid, buf), "%d\r", value);
+ sprintf(buf + translatePIDName(pid, buf), "%d\n", value);
#else
- sprintf(buf, "%X,%d\r", pid, value);
+ sprintf(buf, "%X,%d\n", pid, value);
#endif
#if ENABLE_DATA_OUT
#if STREAM_FORMAT == FORMAT_BIN
@@ -119,9 +119,9 @@ public:
{
char buf[20];
#if STREAM_FORMAT == FORMAT_TEXT
- sprintf(buf + translatePIDName(pid, buf), "%ld\r", value);
+ sprintf(buf + translatePIDName(pid, buf), "%ld\n", value);
#else
- sprintf(buf, "%X,%ld\r", pid, value);
+ sprintf(buf, "%X,%ld\n", pid, value);
#endif
#if ENABLE_DATA_OUT
#if STREAM_FORMAT == FORMAT_BIN
@@ -141,9 +141,9 @@ public:
{
char buf[20];
#if STREAM_FORMAT == FORMAT_TEXT
- sprintf(buf + translatePIDName(pid, buf), "%lu\r", value);
+ sprintf(buf + translatePIDName(pid, buf), "%lu\n", value);
#else
- sprintf(buf, "%X,%lu\r", pid, value);
+ sprintf(buf, "%X,%lu\n", pid, value);
#endif
#if ENABLE_DATA_OUT
#if STREAM_FORMAT == FORMAT_BIN
@@ -163,9 +163,9 @@ public:
{
char buf[24];
#if STREAM_FORMAT == FORMAT_TEXT
- sprintf(buf + translatePIDName(pid, buf), "%d,%d,%d\r", value1, value2, value3);
+ sprintf(buf + translatePIDName(pid, buf), "%d,%d,%d\n", value1, value2, value3);
#else
- sprintf(buf, "%X,%d,%d,%d\r", pid, value1, value2, value3);
+ sprintf(buf, "%X,%d,%d,%d\n", pid, value1, value2, value3);
#endif
#if ENABLE_DATA_OUT
#if STREAM_FORMAT == FORMAT_BIN