aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/timer.rs
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2024-01-25 08:38:28 +0100
committerUlf Lilleengen <[email protected]>2024-01-25 08:38:28 +0100
commit3739cc069914861d891a21734b3da9418bd01e9f (patch)
tree5939a1d2016080045bac85ddc307978549d52d6e /embassy-nrf/src/timer.rs
parent1989c229f99b1177133af51d514ba44a5b02fe6f (diff)
fix warnings
Diffstat (limited to 'embassy-nrf/src/timer.rs')
-rw-r--r--embassy-nrf/src/timer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-nrf/src/timer.rs b/embassy-nrf/src/timer.rs
index 272fffc0a..3c35baee5 100644
--- a/embassy-nrf/src/timer.rs
+++ b/embassy-nrf/src/timer.rs
@@ -111,7 +111,7 @@ impl<'d, T: Instance> Timer<'d, T> {
111 Self::new_inner(timer, true) 111 Self::new_inner(timer, true)
112 } 112 }
113 113
114 fn new_inner(timer: impl Peripheral<P = T> + 'd, is_counter: bool) -> Self { 114 fn new_inner(timer: impl Peripheral<P = T> + 'd, _is_counter: bool) -> Self {
115 into_ref!(timer); 115 into_ref!(timer);
116 116
117 let regs = T::regs(); 117 let regs = T::regs();
@@ -123,7 +123,7 @@ impl<'d, T: Instance> Timer<'d, T> {
123 this.stop(); 123 this.stop();
124 124
125 #[cfg(not(feature = "nrf51"))] 125 #[cfg(not(feature = "nrf51"))]
126 if is_counter { 126 if _is_counter {
127 regs.mode.write(|w| w.mode().low_power_counter()); 127 regs.mode.write(|w| w.mode().low_power_counter());
128 } else { 128 } else {
129 regs.mode.write(|w| w.mode().timer()); 129 regs.mode.write(|w| w.mode().timer());