Skip to content

Commit 01daf5b

Browse files
authored
Merge pull request #3378 from DavePutz/issue3266
Fix for #3266: ensure SPI lock is free after a soft reboot
2 parents 9256e6b + 870326b commit 01daf5b

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
@@ -166,6 +166,8 @@ void reset_board_busses(void) {
166166
#endif
167167
}
168168
#endif
169+
// make sure SPI lock is not held over a soft reset
170+
common_hal_busio_spi_unlock(&spi_obj);
169171
if (!display_using_spi) {
170172
spi_singleton = NULL;
171173
}

0 commit comments

Comments
 (0)