mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-29 21:30:39 +00:00
Forget our problems (#2541)
This commit is contained in:
parent
d68550c485
commit
c6404fe569
@ -287,6 +287,7 @@ where
|
||||
self.i2s.instance.tx_wait_done();
|
||||
let i2s = unsafe { ManuallyDrop::take(&mut self.i2s) };
|
||||
let view = unsafe { ManuallyDrop::take(&mut self.buf_view) };
|
||||
core::mem::forget(self);
|
||||
(i2s, BUF::from_view(view))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user