aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2020-11-08 19:00:23 +0100
committerDario Nieuwenhuis <[email protected]>2020-11-08 19:00:23 +0100
commite539cd32ca36c10c7c1918dde04ee123aadf752d (patch)
tree6e763478728b8f2da9d96f6edc8fa2526188c049
parent36517fd1c580bdd0dffdcbb052bdf9961a4b7346 (diff)
Fix logging with anyfmt/log
-rw-r--r--embassy-nrf/src/gpiote.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-nrf/src/gpiote.rs b/embassy-nrf/src/gpiote.rs
index 1980e8746..9bd4a0a90 100644
--- a/embassy-nrf/src/gpiote.rs
+++ b/embassy-nrf/src/gpiote.rs
@@ -195,7 +195,7 @@ impl Gpiote {
195 195
196 self.free_channels 196 self.free_channels
197 .set(self.free_channels.get() | 1 << index); 197 .set(self.free_channels.get() | 1 << index);
198 trace!("freed ch {:u8}", index); 198 trace!("freed ch {:?}", index);
199 }) 199 })
200 } 200 }
201 201
@@ -214,7 +214,7 @@ impl Gpiote {
214 interrupt::free(|_| { 214 interrupt::free(|_| {
215 unsafe { INSTANCE = self }; 215 unsafe { INSTANCE = self };
216 let index = self.allocate_channel()?; 216 let index = self.allocate_channel()?;
217 trace!("allocated in ch {:u8}", index as u8); 217 trace!("allocated in ch {:?}", index as u8);
218 218
219 self.inner.config[index as usize].write(|w| { 219 self.inner.config[index as usize].write(|w| {
220 match polarity { 220 match polarity {
@@ -251,7 +251,7 @@ impl Gpiote {
251 interrupt::free(|_| { 251 interrupt::free(|_| {
252 unsafe { INSTANCE = self }; 252 unsafe { INSTANCE = self };
253 let index = self.allocate_channel()?; 253 let index = self.allocate_channel()?;
254 trace!("allocated out ch {:u8}", index); 254 trace!("allocated out ch {:?}", index);
255 255
256 self.inner.config[index as usize].write(|w| { 256 self.inner.config[index as usize].write(|w| {
257 w.mode().task(); 257 w.mode().task();