try to test this
This commit is contained in:
@ -260,6 +260,8 @@ impl Nvm {
|
||||
/// Call [Self::shutdown] on drop.
|
||||
impl Drop for Nvm {
|
||||
fn drop(&mut self) {
|
||||
self.shutdown(unsafe { &mut pac::Sysconfig::steal() });
|
||||
if self.spi.is_some() {
|
||||
self.shutdown(unsafe { &mut pac::Sysconfig::steal() });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user