diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-08-22 21:25:29 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-22 21:25:29 +0000 |
| commit | b3212ae383e2cb4f167cbe9361b64bf83bf89049 (patch) | |
| tree | 7ee528ade33153b92e3b26d4255119742dbf8cb0 /examples/nrf52840/src/bin/uart_split.rs | |
| parent | b436aad2a0116b93ccb84b9ffd92aac082a0eeab (diff) | |
| parent | c39671266e21dd9e35e60cc680453cd5c38162db (diff) | |
Merge pull request #1763 from rubdos/sender-receiver-with-ctx
Refactor Channel/Sender/Receiver poll methods
Diffstat (limited to 'examples/nrf52840/src/bin/uart_split.rs')
| -rw-r--r-- | examples/nrf52840/src/bin/uart_split.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/nrf52840/src/bin/uart_split.rs b/examples/nrf52840/src/bin/uart_split.rs index 9979a1d53..b748bfcd8 100644 --- a/examples/nrf52840/src/bin/uart_split.rs +++ b/examples/nrf52840/src/bin/uart_split.rs | |||
| @@ -46,7 +46,7 @@ async fn main(spawner: Spawner) { | |||
| 46 | // back out the buffer we receive from the read | 46 | // back out the buffer we receive from the read |
| 47 | // task. | 47 | // task. |
| 48 | loop { | 48 | loop { |
| 49 | let buf = CHANNEL.recv().await; | 49 | let buf = CHANNEL.receive().await; |
| 50 | info!("writing..."); | 50 | info!("writing..."); |
| 51 | unwrap!(tx.write(&buf).await); | 51 | unwrap!(tx.write(&buf).await); |
| 52 | } | 52 | } |
