We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90575a5 commit 0b40132Copy full SHA for 0b40132
src/Flux/flxSerial.h
@@ -49,12 +49,23 @@ class flxSerial_ : public flxWriter
49
{
50
Serial.println(value);
51
}
52
- void write(const char *value, bool newline)
+ void write(const char *value, bool newline, flxLineType_t type)
53
54
- if (newline)
+
55
+ // If this is a header, we add a stream indicator to the output
56
+ // tart the stream with a Mime Type marker, followed by CR
57
+ if (type == flxLineTypeMime){
58
+ Serial.println();
59
- else
- Serial.print(value);
60
61
+ }
62
+ else
63
+ {
64
+ if (newline)
65
+ Serial.println(value);
66
67
+ Serial.print(value);
68
69
70
71
// Overload listen, so we can type the events, and use the templated
0 commit comments