From b380b3ddf69a78269ca6409e6d376a2c7b5a37b6 Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Sun, 5 Dec 2021 07:05:12 +0000 Subject: [PATCH] Reset UART in new() --- rp2040-hal/src/uart.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rp2040-hal/src/uart.rs b/rp2040-hal/src/uart.rs index efbfc9b..e2c5224 100644 --- a/rp2040-hal/src/uart.rs +++ b/rp2040-hal/src/uart.rs @@ -224,6 +224,7 @@ impl UartPeripheral { impl UartPeripheral { /// Creates an UartPeripheral in Disabled state. pub fn new(device: D, resets: &mut pac::RESETS) -> UartPeripheral { + device.reset_bring_down(resets); device.reset_bring_up(resets); UartPeripheral {