Skip to content

Commit

Permalink
at32: fix dma condition in spi_txn_can_send
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Apr 10, 2024
1 parent 914eff9 commit 7ebd497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver/at32/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ void spi_bus_device_init(const spi_bus_device_t *bus) {
void spi_seg_submit_wait_ex(spi_bus_device_t *bus, const spi_txn_segment_t *segs, const uint32_t count) {
spi_txn_wait(bus);

while (!spi_txn_can_send(bus, true))
while (!spi_txn_can_send(bus, false))
;

const spi_ports_t port = bus->port;
Expand Down

0 comments on commit 7ebd497

Please sign in to comment.