From ecaae22b539e414bfc1b2f113da79f9463a18edd Mon Sep 17 00:00:00 2001 From: Pascal Dornfeld Date: Sun, 1 Mar 2026 20:59:22 +0100 Subject: [PATCH] Add chipId 0xB4 to allowlist --- api_drivers/common_api_drivers/indev/cst816s.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api_drivers/common_api_drivers/indev/cst816s.py b/api_drivers/common_api_drivers/indev/cst816s.py index 64255ac8..dcbc2c29 100644 --- a/api_drivers/common_api_drivers/indev/cst816s.py +++ b/api_drivers/common_api_drivers/indev/cst816s.py @@ -42,6 +42,7 @@ _ChipID = const(0xA7) _ChipIDValue = const(0xB5) _ChipIDValue2 = const(0xB6) +_ChipIDValue3 = const(0xB4) _ProjID = const(0xA8) _FwVersion = const(0xA9) @@ -206,7 +207,7 @@ def __init__( self._read_reg(_FwVersion) print('FW Version:', hex(self._rx_buf[0])) - if chip_id not in (_ChipIDValue, _ChipIDValue2): + if chip_id not in (_ChipIDValue, _ChipIDValue2, _ChipIDValue3): raise RuntimeError(f'Incorrect chip id ({hex(_ChipIDValue)})') self._write_reg(_IrqCtl, _EnTouch | _EnChange)