Fix unused errors

This commit is contained in:
Rasmus Melchior Jacobsen
2023-05-25 13:59:32 +02:00
parent 8b1eaf00a0
commit c02759ad91
2 changed files with 6 additions and 5 deletions

View File

@ -13,6 +13,7 @@ use crate::{interrupt, Peripheral};
pub struct Flash<'d> {
pub(crate) inner: PeripheralRef<'d, FLASH>,
#[cfg(all(feature = "nightly", flash_f4))]
pub(crate) blocking_only: bool,
}
@ -29,6 +30,7 @@ impl<'d> Flash<'d> {
Self {
inner: p,
#[cfg(all(feature = "nightly", flash_f4))]
blocking_only: false,
}
}
@ -38,6 +40,7 @@ impl<'d> Flash<'d> {
Self {
inner: p,
#[cfg(all(feature = "nightly", flash_f4))]
blocking_only: true,
}
}