unlock board.I2C() on reset

This commit is contained in:
Dan Halbert 2021-05-21 17:49:50 -04:00
parent 8f6b5e885c
commit 74833ad35f

View File

@ -143,7 +143,9 @@ void reset_board_busses(void) {
}
}
#endif
// make sure I2C lock is not held over a soft reset
if (i2c_singleton != NULL) {
common_hal_busio_i2c_unlock(i2c_singleton);
if (!display_using_i2c) {
common_hal_busio_i2c_deinit(i2c_singleton);
i2c_singleton = NULL;