Hi, since update to 7.95.1, i can't read values via smbus.
Code
import sys
sys.path.append('/storage/.kodi/addons/virtual.system-tools/lib')
import smbus
import time
import datetime
i2c = smbus.SMBus(1)
def pwr_mode():
data = i2c.read_byte_data(0x69, 0x00)
data = data & ~(1 << 7)
if (data == 1):
return "RPi"
elif (data == 2):
return "BAT"
else:
return "ERR"
Display More
This was working with 7.0, but gives no readings with 7.95
Did i miss a change or is it a bug?