From 747edc5cb64837ac88c08a021365efbdd63f91a9 Mon Sep 17 00:00:00 2001 From: Tanks Transfeld Date: Tue, 21 Mar 2023 18:13:45 +0100 Subject: [PATCH] Update down-the-stack/solutions/src/bin/uarte_enable.rs Co-authored-by: Jonathan Pallant --- down-the-stack/solutions/src/bin/uarte_enable.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/down-the-stack/solutions/src/bin/uarte_enable.rs b/down-the-stack/solutions/src/bin/uarte_enable.rs index 794235d..8e7fa08 100644 --- a/down-the-stack/solutions/src/bin/uarte_enable.rs +++ b/down-the-stack/solutions/src/bin/uarte_enable.rs @@ -28,7 +28,7 @@ fn main() -> ! { // disable the UART0 peripheral by writing 0 directly into the register -- the unsafe way unsafe { - uarte.enable.write(|w| w.bits(0x00 as u32)); + uarte.enable.write(|w| w.bits(0x00u32)); } is_uarte_enabled(&uarte);