8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see 8000 our documentation.
There was an error while loading. Please reload this page.
2 parents c7ffc2c + a4bd4e9 commit 5756dddCopy full SHA for 5756ddd
ports/esp32s2/common-hal/busio/SPI.c
@@ -118,8 +118,12 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self,
118
void common_hal_busio_spi_never_reset(busio_spi_obj_t *self) {
119
spi_never_reset[self->host_id] = true;
120
common_hal_never_reset_pin(self->clock);
121
- common_hal_never_reset_pin(self->MOSI);
122
- common_hal_never_reset_pin(self->MISO);
+ if (self->MOSI != NULL) {
+ common_hal_never_reset_pin(self->MOSI);
123
+ }
124
+ if (self->MISO != NULL) {
125
+ common_hal_never_reset_pin(self->MISO);
126
127
}
128
129
bool common_hal_busio_spi_deinited(busio_spi_obj_t *self) {
0 commit comments