Skip to content

Commit de89fc7

Browse files
authored
Merge pull request #4801 from dhalbert/unlock-board-i2c-on-reset
unlock board.I2C() on reset
2 parents 533a84f + 5a9b95e commit de89fc7

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)