diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2020-09-11 12:41:06 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-11 12:41:06 -0700 |
| commit | 01daf5b8ce7a8defbf76f93fda49727508d5365c (patch) | |
| tree | 6f6e9462d4709a9a88a4562eb236506251c0bb9a /shared-module | |
| parent | 9256e6b376c5a8a6c185e6a4ab25e01987e04445 (diff) | |
| parent | 870326b2218e24a20f40c8ee72f3ec27d0f3813b (diff) | |
Merge pull request #3378 from DavePutz/issue3266
Fix for #3266: ensure SPI lock is free after a soft reboot
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/board/__init__.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-module/board/__init__.c b/shared-module/board/__init__.c index 265c6517f..7d99f2d4e 100644 --- a/shared-module/board/__init__.c +++ b/shared-module/board/__init__.c @@ -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; } |
