From 71b14bfc16706ad47af3a07512981bdc0ec7b253 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 30 May 2021 16:01:27 -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 6b3476dd..1b3867cf 100644 --- a/python/voltcurrent.py +++ b/python/voltcurrent.py @@ -69,7 +69,7 @@ if __name__ == "__main__": ina219_one.bus_adc_resolution = ADCResolution.ADCRES_12BIT_32S # 1S ina219_one.shunt_adc_resolution = ADCResolution.ADCRES_12BIT_32S # 1S ina219_one.bus_voltage_range = BusVoltageRange.RANGE_16V - one = 1 + oneF = 1 except: print("Python Error 3", file=sys.stderr, flush=True) try: @@ -138,7 +138,7 @@ if __name__ == "__main__": print("Python Error 5", file=sys.stderr, flush=True) while (True): - if (one == 1): + if (oneF == 1): print("{:6.3f} ".format(ina219_one.bus_voltage), "{:6.3f} ".format(ina219_one.current) , end = '') else: print("{:6.3f} ".format(0), "{:6.3f} ".format(0), end = '')