diff options
Diffstat (limited to 'examples/stm32h7/src/bin/usart_split.rs')
| -rw-r--r-- | examples/stm32h7/src/bin/usart_split.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32h7/src/bin/usart_split.rs b/examples/stm32h7/src/bin/usart_split.rs index aa0753450..61c9f1954 100644 --- a/examples/stm32h7/src/bin/usart_split.rs +++ b/examples/stm32h7/src/bin/usart_split.rs | |||
| @@ -36,7 +36,7 @@ async fn main(spawner: Spawner) -> ! { | |||
| 36 | info!("Hello World!"); | 36 | info!("Hello World!"); |
| 37 | 37 | ||
| 38 | let config = Config::default(); | 38 | let config = Config::default(); |
| 39 | let mut usart = Uart::new(p.UART7, p.PF6, p.PF7, Irqs, p.DMA1_CH0, p.DMA1_CH1, config); | 39 | let mut usart = Uart::new(p.UART7, p.PF6, p.PF7, Irqs, p.DMA1_CH0, p.DMA1_CH1, config).unwrap(); |
| 40 | unwrap!(usart.blocking_write(b"Type 8 chars to echo!\r\n")); | 40 | unwrap!(usart.blocking_write(b"Type 8 chars to echo!\r\n")); |
| 41 | 41 | ||
| 42 | let (mut tx, rx) = usart.split(); | 42 | let (mut tx, rx) = usart.split(); |
