diff options
| -rw-r--r-- | embassy-nrf/src/gpiote.rs | 6 |
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(); |
