Skip to content
Snippets Groups Projects
Commit df84d671 authored by OtherCrashOverride's avatar OtherCrashOverride Committed by Seungchul Lee
Browse files

Use 3 decimal places instead of 2 for volt and amp in log.

parent 1db7fad9
No related branches found
No related tags found
No related merge requests found
......@@ -717,7 +717,7 @@ void handler(void)
if (logClient && logClient.connected())
{
// Report the log info
String data = String(volt) + "," + String(ampere) + "," +
String data = String(volt, 3) + "," + String(ampere, 3) + "," +
String(watt, 3) + "," + String(watth/3600, 3) + "\r\n";
logClient.write(data.c_str());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment