From 9608766ef5d709e3281063468ab989d24395a6d4 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 30 May 2021 14:54:16 -0400 Subject: [PATCH] fixed missing /n --- python/voltcurrent.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/python/voltcurrent.py b/python/voltcurrent.py index 2ca0d8e1..f1675b21 100644 --- a/python/voltcurrent.py +++ b/python/voltcurrent.py @@ -81,35 +81,35 @@ if __name__ == "__main__": try: print("{:6.3f} ".format(ina219_one.bus_voltage), "{:6.3f} ".format(ina219_one.current) , end = '') except: - print("{:6.3f} ".format(0), "{:6.3f} ".format(0)) + print("{:6.3f} ".format(0), "{:6.3f} ".format(0), end = '') try: print("{:6.3f} ".format(ina219_two.bus_voltage), "{:6.3f} ".format(ina219_two.current) , end = '') except: - print("{:6.3f} ".format(0), "{:6.3f} ".format(0)) + print("{:6.3f} ".format(0), "{:6.3f} ".format(0), end = '') try: print("{:6.3f} ".format(ina219_three.bus_voltage), "{:6.3f} ".format(ina219_three.current) , end = '') except: - print("{:6.3f} ".format(0), "{:6.3f} ".format(0)) + print("{:6.3f} ".format(0), "{:6.3f} ".format(0), end = '') try: print("{:6.3f} ".format(ina219_four.bus_voltage), "{:6.3f} ".format(ina219_four.current) , end = '') except: - print("{:6.3f} ".format(0), "{:6.3f} ".format(0)) + print("{:6.3f} ".format(0), "{:6.3f} ".format(0), end = '') try: print("{:6.3f} ".format(ina219_five.bus_voltage), "{:6.3f} ".format(ina219_five.current) , end = '') except: - print("{:6.3f} ".format(0), "{:6.3f} ".format(0)) + print("{:6.3f} ".format(0), "{:6.3f} ".format(0), end = '') try: print("{:6.3f} ".format(ina219_six.bus_voltage), "{:6.3f} ".format(ina219_six.current) , end = '') except: - print("{:6.3f} ".format(0), "{:6.3f} ".format(0)) + print("{:6.3f} ".format(0), "{:6.3f} ".format(0), end = '') try: print("{:6.3f} ".format(ina219_seven.bus_voltage), "{:6.3f} ".format(ina219_seven.current) , end = '') except: - print("{:6.3f} ".format(0), "{:6.3f} ".format(0)) + print("{:6.3f} ".format(0), "{:6.3f} ".format(0), end = '') try: print("{:6.3f} ".format(ina219_eight.bus_voltage), "{:6.3f} ".format(ina219_eight.current) , end = '') except: - print("{:6.3f} ".format(0), "{:6.3f} ".format(0)) + print("{:6.3f} ".format(0), "{:6.3f} ".format(0), end = '') print(" ") inp = input() # print(inp)