try to test this

This commit is contained in:
2024-09-11 18:55:15 +02:00
parent 1b313d21c4
commit 46937f5bf9
13 changed files with 340 additions and 31 deletions

View File

@ -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() });
}
}
}