simplefoc / Arduino-FOC-drivers

Drivers and support code for SimpleFOC
https://docs.simplefoc.com/drivers_library
MIT License
146 stars 63 forks source link

Update AS5600.cpp #49

Closed zbas closed 1 month ago

zbas commented 1 month ago

Critical bug fix. The I2CADDR and I2CUPDT registers are single byte registers on AS5600L, without specifying this the default behaviour is to write two bytes. The address will then be mistakenly written as 0x00 which is a reserved I2C address. If this is followed by a burn settings, the wrong address may permanently be written and the sensor may be 'bricked'.

runger1101001 commented 1 month ago

Thanks a lot for reporting this! I have merged it to the dev branch and it will be part of the next release.