Skip to content

Commit 5a9b95e

Browse files
committed
unlock board.I2C() on reset
1 parent 20946d9 commit 5a9b95e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shared-module/board/__init__.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ void reset_board_busses(void) {
143143
}
144144
}
145145
#endif
146+
// make sure I2C lock is not held over a soft reset
146147
if (i2c_singleton != NULL) {
148+
common_hal_busio_i2c_unlock(i2c_singleton);
147149
if (!display_using_i2c) {
148150
common_hal_busio_i2c_deinit(i2c_singleton);
149151
i2c_singleton = NULL;

0 commit comments

Comments
 (0)