From 6a43dddb7bccf36d235b79058e4e277e8750bf3e Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 29 May 2021 14:49:46 -0400 Subject: [PATCH] more indent --- python/voltcurrent.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/voltcurrent.py b/python/voltcurrent.py index 3be10e1f..0831b657 100644 --- a/python/voltcurrent.py +++ b/python/voltcurrent.py @@ -37,7 +37,7 @@ if __name__ == "__main__": print(x,y) try: # Create library object using Extended Bus I2C port - print("bus: ", x, " addr: ", y) + print("bus: ", x, " addr: ", y) if x == 0 and y == 0x45: # print("Reading INA219 in MoPower Board") i2c_bus = I2C(1) @@ -53,7 +53,9 @@ if __name__ == "__main__": # optional : change voltage range to 16V ina219.bus_voltage_range = BusVoltageRange.RANGE_16V except: + print("Error 2") except: + print("Error 1") # No try checking yet i2c_one = I2C(buses[0])