From 2f6edf531f385bd47b406ea92afc262e37b0df43 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 29 Dec 2020 11:42:23 -0500 Subject: [PATCH] Update voltcurrent.py --- python/voltcurrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/voltcurrent.py b/python/voltcurrent.py index 3ad89a68..a3bd1f29 100644 --- a/python/voltcurrent.py +++ b/python/voltcurrent.py @@ -61,7 +61,7 @@ if __name__ == "__main__": if buses[0] == 0 and addresses[0] == 0x45: # print("Reading INA219 in MoPower Board") ina219_one = INA219(I2C(1), 0x4a) - else + else: ina219_one = INA219(i2c_one, addresses[0]) ina219_two = INA219(i2c_one, addresses[1]) ina219_three = INA219(i2c_one, addresses[2])