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 666fb94 + 7354e2a commit 1f20328Copy full SHA for 1f20328
ports/mimxrt10xx/common-hal/busio/SPI.c
@@ -109,7 +109,7 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self,
109
// if both MOSI and MISO exist, loop search normally
110
if ((mosi != NULL) && (miso != NULL)) {
111
for (uint j = 0; j < mosi_count; j++) {
112
- if ((mcu_spi_sdo_list[i].pin != mosi)
+ if ((mcu_spi_sdo_list[j].pin != mosi)
113
|| (mcu_spi_sck_list[i].bank_idx != mcu_spi_sdo_list[j].bank_idx)) {
114
continue;
115
}
0 commit comments