File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
internal_filesystem/lib/mpos Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -135,11 +135,11 @@ def _ensure_imu_initialized():
135135 except :
136136 pass
137137
138- # Try WSEN_ISDS (Fri3d badge )
138+ # Try WSEN_ISDS (fri3d_2024) or LSM6DSO (fri3d_2026 )
139139 try :
140140 from mpos .hardware .drivers .wsen_isds import Wsen_Isds
141- chip_id = _i2c_bus .readfrom_mem (_i2c_address , 0x0F , 1 )[0 ] # WHO_AM_I register
142- if chip_id == 0x6A : # WSEN_ISDS WHO_AM_I
141+ chip_id = _i2c_bus .readfrom_mem (_i2c_address , 0x0F , 1 )[0 ] # WHO_AM_I register - could also use Wsen_Isds.get_chip_id()
142+ if chip_id == 0x6A or chip_id == 0x6C : # WSEN_ISDS WHO_AM_I 0x6A (Fri3d 2024) or 0x6C (Fri3d 2026)
143143 _imu_driver = _WsenISDSDriver (_i2c_bus , _i2c_address )
144144 _register_wsen_isds_sensors ()
145145 _load_calibration ()
You can’t perform that action at this time.
0 commit comments