diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-06-10 19:53:45 +1000 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-06-10 19:53:45 +1000 |
commit | 75da809b139fd039e1a14714e5ccce3417bd1d78 (patch) | |
tree | 9438e2ad36d872018f87b30e9885aeff9373c72c /megalogger/datalogger.h | |
parent | d3fc63ae15172350247738d60edb5f42c8e9c2f0 (diff) | |
download | 2021-arduino-obd-75da809b139fd039e1a14714e5ccce3417bd1d78.tar.gz 2021-arduino-obd-75da809b139fd039e1a14714e5ccce3417bd1d78.tar.bz2 2021-arduino-obd-75da809b139fd039e1a14714e5ccce3417bd1d78.zip |
Update MEGA Logger for colored display
Diffstat (limited to 'megalogger/datalogger.h')
-rw-r--r-- | megalogger/datalogger.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/megalogger/datalogger.h b/megalogger/datalogger.h index aae4034..920af4c 100644 --- a/megalogger/datalogger.h +++ b/megalogger/datalogger.h @@ -1,3 +1,11 @@ +/************************************************************************* +* Arduino Data Logger Class +* Distributed under GPL v2.0 +* Copyright (c) 2013-2014 Stanley Huang <stanleyhuangyc@gmail.com> +* All rights reserved. +* Visit http://freematics.com for more information +*************************************************************************/ + #define FORMAT_BIN 0 #define FORMAT_CSV 1 @@ -143,7 +151,8 @@ public: { uint16_t fileIndex; char filename[24] = "/FRMATICS"; - + + dataSize = 0; if (SD.exists(filename)) { for (fileIndex = 1; fileIndex; fileIndex++) { sprintf(filename + 9, FILE_NAME_FORMAT, fileIndex); @@ -163,8 +172,6 @@ public: if (!sdfile) { return 0; } - - dataSize = sdfile.print(idstr); return fileIndex; } void closeFile() |