Skip to content

Commit

Permalink
bugfix for logging data format
Browse files Browse the repository at this point in the history
  • Loading branch information
mkgeiger committed Mar 7, 2019
1 parent 2e08d08 commit b46c5f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GeigerCounter/GeigerCounter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ void loop()
else
{
Serial.println("====== Writing to SPIFFS file =========");
f.print(now()); f.print(";"); f.print((int)lastcSvAvr);f.print(","); f.print(((int)(lastcSvAvr * 1000.0)) % 1000); f.print("\n");
f.print(now()); f.print(";"); f.print((int)lastcSvAvr);f.print(","); f.printf("%03d\n", ((int)(lastcSvAvr * 1000.0)) % 1000);
lineCount++;
f.close();
}
Expand Down

0 comments on commit b46c5f4

Please sign in to comment.