We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c61dbb commit 59824ddCopy full SHA for 59824dd
lib/HanReader/HanReader.cpp
@@ -27,7 +27,7 @@ void HanReader::saveData()
27
if (!reader.ParseData(buffer, bytesRead))
28
{
29
dataFile = LittleFS.open("/log.txt", "w");
30
- dataFile.print("--- Start ---");
+ dataFile.printf("--- Start %lu ---", millis());
31
for (uint n = 0; n < bytesRead; ++n)
32
33
if ((n % 16) == 0)
src/main.cpp
@@ -35,6 +35,9 @@ void setup() {
35
webServer.setup();
36
ArduinoOTA.begin();
37
hanReader.saveData();
38
+
39
+ // Flush serial buffer
40
+ while(Serial.available()>0) Serial.read();
41
}
42
43
void loop()
0 commit comments