Skip to content

Commit 59165ca

Browse files
committed
Removed unneeded pointer
1 parent 61e1c90 commit 59165ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

shared-module/board/__init__.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ void reset_board_busses(void) {
151151
#endif
152152
#if BOARD_SPI
153153
bool display_using_spi = false;
154-
busio_spi_obj_t *self = &spi_obj;
155154
#if CIRCUITPY_DISPLAYIO
156155
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
157156
mp_const_obj_t bus_type = displays[i].bus_base.type;
@@ -169,7 +168,7 @@ void reset_board_busses(void) {
169168
#endif
170169
if (!display_using_spi) {
171170
// make sure lock is not held over a soft reset
172-
common_hal_busio_spi_unlock(self);
171+
common_hal_busio_spi_unlock(&spi_obj);
173172
spi_singleton = NULL;
174173
}
175174
#endif

0 commit comments

Comments
 (0)