From f0389b7b978fa8b75a5fd0826eee18435b54a91f Mon Sep 17 00:00:00 2001 From: Viktor Dragomiretskyy Date: Tue, 23 Jun 2020 00:51:53 +1200 Subject: [PATCH] Another unexpected reg value --- proto9x/calibrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto9x/calibrate.py b/proto9x/calibrate.py index 918fa5c..506223a 100644 --- a/proto9x/calibrate.py +++ b/proto9x/calibrate.py @@ -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()