From e660f39c366aefd88173b183be45042ed34a2e1f Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 1 Apr 2022 12:00:37 +0100 Subject: comment --- datalog.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/datalog.h b/datalog.h index da715e8..57a6b9f 100644 --- a/datalog.h +++ b/datalog.h @@ -9,6 +9,11 @@ const int mySD_SCLK=14; const int mySD_MISO=2; const int mySD_MOSI=15; +/* + we write fixed-length CSV lines because, at some point in the + future, I may need to seek "10 measurements back" or something like + that; also, it's easier to read + */ // 12345, 12345, 12345, 12345, 123456, 123456, 123456, 123456, 12345\n const char csvHeader[]=" secs, co2, temp, humid, pm1, pm2.5, pm4, pm10, batt\n"; const char csvFormat[]="% 5lu, % 5u, % 5.1f, % 5.1f, % 6.1f, % 6.1f, % 6.1f, % 6.1f, % 5.2f\n"; -- cgit v1.2.3