8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d4c74a + 380a708 commit ac7977bCopy full SHA for ac7977b
ports/espressif/common-hal/busio/SPI.c
@@ -205,11 +205,10 @@ bool common_hal_busio_spi_transfer(busio_spi_obj_t *self,
205
if (len == 0) {
206
return true;
207
}
208
- // Other than the read special case, stop transfers that don't have a pin/array match
209
- if (!self->MOSI && (data_out != data_in)) {
+ if (self->MOSI == NULL && data_out != NULL) {
210
mp_raise_ValueError(translate("No MOSI Pin"));
211
212
- if (!self->MISO && data_in) {
+ if (self->MISO == NULL && data_in != NULL) {
213
mp_raise_ValueError(translate("No MISO Pin"));
214
215
0 commit comments