Update readcurrent.py

pull/1/head
alanbjohnston 7 years ago committed by GitHub
parent 4a5108f51e
commit 60bc426342
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,6 +5,7 @@ MAX_EXPECTED_AMPS45 = 0.6
ina40v = 0
ina40i = 0
ina40p = 0
FAIL = -1
try:
from ina219 import INA219
@ -21,7 +22,8 @@ if INA219DISABLE !=1:
ina40v = ina40.voltage()
ina40i = ina40.current()
ina40p = ina40.power()
except:
except:
FAIL = 1
print ina40v, ina40i, ina40p
if INA219DISABLE !=1:

Loading…
Cancel
Save

Powered by TurnKey Linux.