Added warning if python package ina219 is not installed

pull/5/head
alanbjohnston 7 years ago committed by GitHub
parent c896a8c87f
commit aad44d870a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -24,6 +24,8 @@ try:
from ina219 import INA219
from ina219 import DeviceRangeError
INA219DISABLE=-1
print"python package ina219 import failed! Install by typing: sudo pip install pi-ina219==1.1.0"
except:
INA219DISABLE=1

Loading…
Cancel
Save

Powered by TurnKey Linux.