Merge pull request #3378 from DavePutz/issue3266

Fix for #3266: ensure SPI lock is free after a soft reboot
This commit is contained in:
Scott Shawcroft 2020-09-11 12:41:06 -07:00 committed by GitHub
commit 01daf5b8ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,8 @@ void reset_board_busses(void) {
#endif
}
#endif
// make sure SPI lock is not held over a soft reset
common_hal_busio_spi_unlock(&spi_obj);
if (!display_using_spi) {
spi_singleton = NULL;
}