aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/flash/common.rs
diff options
context:
space:
mode:
authorRasmus Melchior Jacobsen <[email protected]>2023-05-25 13:59:32 +0200
committerRasmus Melchior Jacobsen <[email protected]>2023-05-25 20:07:43 +0200
commite764a3d9ca7a4a0ccdf800c61a388dd103de5ac1 (patch)
tree12611a50155cf3e99fc8f056bebc7c3925c36a83 /embassy-stm32/src/flash/common.rs
parent49a31bd5d8496e8ceb1144e6e02de0e55dd0508b (diff)
Fix unused errors
Diffstat (limited to 'embassy-stm32/src/flash/common.rs')
-rw-r--r--embassy-stm32/src/flash/common.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/embassy-stm32/src/flash/common.rs b/embassy-stm32/src/flash/common.rs
index 0a1ee5166..547e30312 100644
--- a/embassy-stm32/src/flash/common.rs
+++ b/embassy-stm32/src/flash/common.rs
@@ -13,6 +13,7 @@ use crate::{interrupt, Peripheral};
13 13
14pub struct Flash<'d> { 14pub struct Flash<'d> {
15 pub(crate) inner: PeripheralRef<'d, FLASH>, 15 pub(crate) inner: PeripheralRef<'d, FLASH>,
16 #[cfg(all(feature = "nightly", flash_f4))]
16 pub(crate) blocking_only: bool, 17 pub(crate) blocking_only: bool,
17} 18}
18 19
@@ -29,6 +30,7 @@ impl<'d> Flash<'d> {
29 30
30 Self { 31 Self {
31 inner: p, 32 inner: p,
33 #[cfg(all(feature = "nightly", flash_f4))]
32 blocking_only: false, 34 blocking_only: false,
33 } 35 }
34 } 36 }
@@ -38,6 +40,7 @@ impl<'d> Flash<'d> {
38 40
39 Self { 41 Self {
40 inner: p, 42 inner: p,
43 #[cfg(all(feature = "nightly", flash_f4))]
41 blocking_only: true, 44 blocking_only: true,
42 } 45 }
43 } 46 }