diff options
author | Stefan Kerkmann <karlk90@pm.me> | 2022-07-26 21:40:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 21:40:14 +0200 |
commit | 083b42068a284765c5dd18c2f04ed542d157ffc9 (patch) | |
tree | e7adb2bc6ba241062db66620adbde14c5799d18e /platforms/chibios/drivers/ws2812.c | |
parent | 2899e69ead3322a41b695cf84fb089ce75a4beb8 (diff) |
Chibios: Stop I2C peripheral on transaction error (#17798)
From the ChibiOS HAL I2C driver pages:
After a timeout the driver must be stopped and restarted because the bus is in
an uncertain state.
This commit does that stopping explicitly on any error that occurred, not only
timeouts. As all the i2c functions restart the peripheral if necessary it is
safe to do so.
Co-authored-by: Dasky <32983009+daskygit@users.noreply.github.com>
Co-authored-by: Dasky <32983009+daskygit@users.noreply.github.com>
Diffstat (limited to 'platforms/chibios/drivers/ws2812.c')
0 files changed, 0 insertions, 0 deletions