From e539cd32ca36c10c7c1918dde04ee123aadf752d Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sun, 8 Nov 2020 19:00:23 +0100 Subject: [PATCH] Fix logging with anyfmt/log --- embassy-nrf/src/gpiote.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/embassy-nrf/src/gpiote.rs b/embassy-nrf/src/gpiote.rs index 1980e874..9bd4a0a9 100644 --- a/embassy-nrf/src/gpiote.rs +++ b/embassy-nrf/src/gpiote.rs @@ -195,7 +195,7 @@ impl Gpiote { self.free_channels .set(self.free_channels.get() | 1 << index); - trace!("freed ch {:u8}", index); + trace!("freed ch {:?}", index); }) } @@ -214,7 +214,7 @@ impl Gpiote { interrupt::free(|_| { unsafe { INSTANCE = self }; let index = self.allocate_channel()?; - trace!("allocated in ch {:u8}", index as u8); + trace!("allocated in ch {:?}", index as u8); self.inner.config[index as usize].write(|w| { match polarity { @@ -251,7 +251,7 @@ impl Gpiote { interrupt::free(|_| { unsafe { INSTANCE = self }; let index = self.allocate_channel()?; - trace!("allocated out ch {:u8}", index); + trace!("allocated out ch {:?}", index); self.inner.config[index as usize].write(|w| { w.mode().task();