@@ -154,6 +154,8 @@ const int FIRMWARE_VERSION_MINOR = 3;
154154
155155// #define noPowerLossProtection // Uncomment this line to disable the sleep-on-power-loss functionality
156156
157+ #include " Sensors.h"
158+
157159#include " settings.h"
158160
159161// Define the pin functions
@@ -545,7 +547,13 @@ void setup() {
545547 else
546548 SerialPrintln (F (" No Qwiic devices detected" ));
547549
548- if (settings.showHelperText == true ) printHelperText (false ); // printHelperText to terminal and sensor file
550+ // KDB add
551+ // If we are streaming to Serial, start the stream with a Mime Type marker, followed by CR
552+ SerialPrintln (F (" Content-Type: text/csv" ));
553+ SerialPrintln (" " );
554+
555+ if (settings.showHelperText == true )
556+ printHelperText (OL_OUTPUT_SERIAL | OL_OUTPUT_SDCARD); // printHelperText to terminal and sensor file
549557
550558 // If we are sleeping between readings then we cannot rely on millis() as it is powered down
551559 // Use RTC instead
@@ -705,7 +713,7 @@ void loop() {
705713 }
706714#endif
707715
708- getData (); // Query all enabled sensors for data
716+ getData (outputData, sizeof (outputData) ); // Query all enabled sensors for data
709717
710718 // Print to terminal
711719 if (settings.enableTerminalOutput == true )
@@ -750,7 +758,8 @@ void loop() {
750758 sensorDataFile.close ();
751759 strcpy (sensorDataFileName, findNextAvailableLog (settings.nextDataLogNumber , " dataLog" ));
752760 beginDataLogging (); // 180ms
753- if (settings.showHelperText == true ) printHelperText (false ); // printHelperText to terminal and sensor file
761+ if (settings.showHelperText == true )
762+ printHelperText (OL_OUTPUT_SDCARD); // printHelperText to the sensor file
754763 }
755764 if (online.serialLogging == true )
756765 {
0 commit comments