@@ -152,6 +152,7 @@ const int FIRMWARE_VERSION_MINOR = 3;
152152// the minor firmware version
153153#define OLA_IDENTIFIER 0x123 // Stored as 291 decimal in OLA_settings.txt
154154
155+ #include " Sensors.h"
155156#include " settings.h"
156157
157158// Define the pin functions
@@ -505,7 +506,13 @@ void setup() {
505506 else
506507 SerialPrintln (F (" No Qwiic devices detected" ));
507508
508- if (settings.showHelperText == true ) printHelperText (false ); // printHelperText to terminal and sensor file
509+ // KDB add
510+ // If we are streaming to Serial, start the stream with a Mime Type marker, followed by CR
511+ SerialPrintln (F (" Content-Type: text/csv" ));
512+ SerialPrintln (" " );
513+
514+ if (settings.showHelperText == true )
515+ printHelperText (OL_OUTPUT_SERIAL | OL_OUTPUT_SDCARD); // printHelperText to terminal and sensor file
509516
510517 // If we are sleeping between readings then we cannot rely on millis() as it is powered down
511518 // Use RTC instead
@@ -665,7 +672,7 @@ void loop() {
665672 }
666673#endif
667674
668- getData (); // Query all enabled sensors for data
675+ getData (outputData, sizeof (outputData) ); // Query all enabled sensors for data
669676
670677 // Print to terminal
671678 if (settings.enableTerminalOutput == true )
@@ -710,7 +717,8 @@ void loop() {
710717 sensorDataFile.close ();
711718 strcpy (sensorDataFileName, findNextAvailableLog (settings.nextDataLogNumber , " dataLog" ));
712719 beginDataLogging (); // 180ms
713- if (settings.showHelperText == true ) printHelperText (false ); // printHelperText to terminal and sensor file
720+ if (settings.showHelperText == true )
721+ printHelperText (OL_OUTPUT_SDCARD); // printHelperText to the sensor file
714722 }
715723 if (online.serialLogging == true )
716724 {
0 commit comments