From 5a9b95e611324660ccb0807604f16709266263bc Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Fri, 21 May 2021 17:49:50 -0400 Subject: [PATCH] unlock board.I2C() on reset --- shared-module/board/__init__.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shared-module/board/__init__.c b/shared-module/board/__init__.c index 9dbca48fd1..05900040d8 100644 --- a/shared-module/board/__init__.c +++ b/shared-module/board/__init__.c @@ -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;