From d6a11e46773f60dfc9efd36d31a2105578793606 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 18 Aug 2020 15:20:03 -0400 Subject: [PATCH] Update voltcurrent.py --- python/voltcurrent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/voltcurrent.py b/python/voltcurrent.py index cd40bf0c..4673c4bb 100644 --- a/python/voltcurrent.py +++ b/python/voltcurrent.py @@ -49,8 +49,8 @@ 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("{:6.3f} ".format(bus_voltage), "{:6.3f} ".format(current) , end = '') + print("{:5.3f} ".format(bus_voltage), "{:6.1f} ".format(current) , end = '') except: - print("{:6.3f} ".format(0), "{:6.3f} ".format(0), end = '') + print("{:5.3f} ".format(0), "{:6.1f} ".format(0), end = '') # pass print(" ")