Another unexpected reg value

This commit is contained in:
Viktor Dragomiretskyy 2020-06-23 00:51:53 +12:00
parent d24ef8fc92
commit f0389b7b97

View file

@ -40,7 +40,7 @@ def persist_calib_data(calib_data):
def calibrate(calib_data_path='calib-data.bin'):
# no idea what this is:
write_hw_reg32(0x8000205c, 7)
if read_hw_reg32(0x80002080) != 2:
if read_hw_reg32(0x80002080) != 3:
raise Exception('Unexpected register value')
dev=identify_sensor()