From b0864b47745e399a58869719c014ca72316ad839 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 25 Oct 2018 07:22:54 -0400 Subject: [PATCH] Update readcurrent.py --- python/readcurrent.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/readcurrent.py b/python/readcurrent.py index 2d414d8f..b5718520 100644 --- a/python/readcurrent.py +++ b/python/readcurrent.py @@ -6,7 +6,7 @@ MAX_EXPECTED_AMPS45 = 0.6 try: from ina219 import INA219 from ina219 import DeviceRangeError - INA219DISABLE=0 + INA219DISABLE=1 except: print "1 INA219 libraries not found or hardware INA219 not found at address 0x4a, defaulting to non-INA219 output" INA219DISABLE=1 @@ -25,8 +25,6 @@ if INA219DISABLE !=1: ina40p = 0 print ina40v, ina40i, ina40p - -print ina40v, ina40i, ina40p if INA219DISABLE !=1: ina4A = INA219(SHUNT_OHMS, MAX_EXPECTED_AMPS, 0x4a)