From 5b08dffe035c419a3d1fadb879118e4fea063a70 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 18 Aug 2020 15:02:09 -0400 Subject: [PATCH] Update voltcurrent.py --- python/voltcurrent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/voltcurrent.py b/python/voltcurrent.py index 38f6c639..49f370f8 100644 --- a/python/voltcurrent.py +++ b/python/voltcurrent.py @@ -49,7 +49,7 @@ if __name__ == "__main__": current = ina219.current # current in mA # INA219 measure bus voltage on the load side. So PSU voltage = bus_voltage + shunt_voltage # print("{:6.3f}".format(bus_voltage + shunt_voltage)) - print(bus_voltage, " ", current, " ") + print(bus_voltage, " ", current, " ", end = '') except: -# print("0.0 Error) - pass + print("0.0 0.0", end = '') +# pass