Skip to content

Commit 01daf5b

Browse files
authored
Merge pull request adafruit#3378 from DavePutz/issue3266
Fix for adafruit#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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy