Skip to content

Commit

Permalink
spi-dma example: swap buffer and SPI device in return value of transfer
Browse files Browse the repository at this point in the history
wait
  • Loading branch information
trnila authored and TheZoq2 committed Mar 7, 2020
1 parent 3ba66b6 commit 80161be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/spi-dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fn main() -> ! {

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

loop {
}
Expand Down

0 comments on commit 80161be

Please sign in to comment.