Fix logging with anyfmt/log

This commit is contained in:
Dario Nieuwenhuis 2020-11-08 19:00:23 +01:00
parent 36517fd1c5
commit e539cd32ca

View File

@ -195,7 +195,7 @@ impl Gpiote {
self.free_channels self.free_channels
.set(self.free_channels.get() | 1 << index); .set(self.free_channels.get() | 1 << index);
trace!("freed ch {:u8}", index); trace!("freed ch {:?}", index);
}) })
} }
@ -214,7 +214,7 @@ impl Gpiote {
interrupt::free(|_| { interrupt::free(|_| {
unsafe { INSTANCE = self }; unsafe { INSTANCE = self };
let index = self.allocate_channel()?; 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| { self.inner.config[index as usize].write(|w| {
match polarity { match polarity {
@ -251,7 +251,7 @@ impl Gpiote {
interrupt::free(|_| { interrupt::free(|_| {
unsafe { INSTANCE = self }; unsafe { INSTANCE = self };
let index = self.allocate_channel()?; let index = self.allocate_channel()?;
trace!("allocated out ch {:u8}", index); trace!("allocated out ch {:?}", index);
self.inner.config[index as usize].write(|w| { self.inner.config[index as usize].write(|w| {
w.mode().task(); w.mode().task();