Skip to content

Commit 870326b

Browse files
committed
Moved SPI unlock code
1 parent 59165ca commit 870326b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-module/board/__init__.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ 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) {
170-
// make sure lock is not held over a soft reset
171-
common_hal_busio_spi_unlock(&spi_obj);
172172
spi_singleton = NULL;
173173
}
174174
#endif

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