diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-04-11 23:00:14 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-04-11 23:09:02 +0200 |
| commit | 9a677ab618aa7a7612cd079b77d3240bdb02fdac (patch) | |
| tree | 17eacc9698a823a8ad5af3fd44468f54e69a5c1d /embassy-nrf/src/timer.rs | |
| parent | 5c42ca13bd207c5923cb36e1454f3f838582b6cb (diff) | |
common/peripheral: do not require mut in PeripheralRef clone_unchecked.
Diffstat (limited to 'embassy-nrf/src/timer.rs')
| -rw-r--r-- | embassy-nrf/src/timer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-nrf/src/timer.rs b/embassy-nrf/src/timer.rs index a9487a9fd..48b4f1b55 100644 --- a/embassy-nrf/src/timer.rs +++ b/embassy-nrf/src/timer.rs | |||
| @@ -117,7 +117,7 @@ impl<'d, T: Instance> Timer<'d, T> { | |||
| 117 | 117 | ||
| 118 | let regs = T::regs(); | 118 | let regs = T::regs(); |
| 119 | 119 | ||
| 120 | let mut this = Self { _p: timer }; | 120 | let this = Self { _p: timer }; |
| 121 | 121 | ||
| 122 | // Stop the timer before doing anything else, | 122 | // Stop the timer before doing anything else, |
| 123 | // since changing BITMODE while running can cause 'unpredictable behaviour' according to the specification. | 123 | // since changing BITMODE while running can cause 'unpredictable behaviour' according to the specification. |
