aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb-dfu/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-usb-dfu/src/lib.rs')
-rw-r--r--embassy-usb-dfu/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/embassy-usb-dfu/src/lib.rs b/embassy-usb-dfu/src/lib.rs
index dcdb11b2a..81ef041f8 100644
--- a/embassy-usb-dfu/src/lib.rs
+++ b/embassy-usb-dfu/src/lib.rs
@@ -12,5 +12,8 @@ mod application;
12#[cfg(feature = "application")] 12#[cfg(feature = "application")]
13pub use self::application::*; 13pub use self::application::*;
14 14
15#[cfg(any(all(feature = "bootloader", feature = "application"), not(any(feature = "bootloader", feature = "application"))))] 15#[cfg(any(
16 all(feature = "bootloader", feature = "application"),
17 not(any(feature = "bootloader", feature = "application"))
18))]
16compile_error!("usb-dfu must be compiled with exactly one of `bootloader`, or `application` features"); 19compile_error!("usb-dfu must be compiled with exactly one of `bootloader`, or `application` features");