diff options
author | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2022-02-16 03:54:39 +0100 |
---|---|---|
committer | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2022-03-11 00:38:07 +0100 |
commit | 9bad9365dcf31dd558aca05f60d244beb9e5e697 (patch) | |
tree | 3d54927ce409975c58dff4409b8a140a4b68abd1 /embassy-hal-common | |
parent | 828cdb295183b8733ec636a80e0d35e6f8e41827 (diff) | |
download | embassy-9bad9365dcf31dd558aca05f60d244beb9e5e697.zip |
Update rust nightly, embedded-hal 1.0, embedded-hal-async.
Diffstat (limited to 'embassy-hal-common')
-rw-r--r-- | embassy-hal-common/src/peripheral.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-hal-common/src/peripheral.rs b/embassy-hal-common/src/peripheral.rs index dcf9d3a2..89420a42 100644 --- a/embassy-hal-common/src/peripheral.rs +++ b/embassy-hal-common/src/peripheral.rs @@ -97,7 +97,7 @@ impl<'a, S: PeripheralState> PeripheralMutex<'a, S> { // Interrupts' priorities can only be changed with raw embassy `Interrupts`, // which can't safely store a `PeripheralMutex` across invocations. // - We can't have preempted a with() call because the irq is disabled during it. - let state = unsafe { &mut *(p as *mut S) }; + let state = &mut *(p as *mut S); state.on_interrupt(); }); irq.set_handler_context(state_ptr as *mut ()); |