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.
1 parent 0d16498 commit 95cb596Copy full SHA for 95cb596
ports/esp32s2/common-hal/busio/SPI.c
@@ -357,6 +357,9 @@ bool common_hal_busio_spi_transfer(busio_spi_obj_t *self, const uint8_t *data_ou
357
} else {
358
hal->dma_enabled = 0;
359
burst_length = sizeof(hal->hw->data_buf);
360
+ // When switching to non-DMA, we need to make sure DMA is off. Otherwise,
361
+ // the S2 will transmit zeroes instead of our data.
362
+ spi_ll_txdma_disable(hal->hw);
363
}
364
365
// This rounds up.
0 commit comments