From df84d671affc632ca86028e17f67cff77dfff635 Mon Sep 17 00:00:00 2001
From: OtherCrashOverride <OtherCrashOverride@users.noreply.github.com>
Date: Wed, 18 Jan 2017 07:30:03 -0600
Subject: [PATCH] Use 3 decimal places instead of 2 for volt and amp in log.

---
 src/smartpower2.ino | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/smartpower2.ino b/src/smartpower2.ino
index 8b8c96a..8ed1c3c 100644
--- a/src/smartpower2.ino
+++ b/src/smartpower2.ino
@@ -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());
-- 
GitLab