Skip to content

Commit 80161be

Browse files
trnilaTheZoq2
authored andcommitted
spi-dma example: swap buffer and SPI device in return value of transfer
wait
1 parent 3ba66b6 commit 80161be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/spi-dma.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fn main() -> ! {
6161

6262
// Wait for it to finnish. The transfer takes ownership over the SPI device
6363
// and the data being sent anb those things are returned by transfer.wait
64-
let (_spi_dma, _buffer) = transfer.wait();
64+
let (_buffer, _spi_dma) = transfer.wait();
6565

6666
loop {
6767
}

0 commit comments

Comments
 (0)