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.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-usb-dfu/src/lib.rs b/embassy-usb-dfu/src/lib.rs
index 283905de9..389bb33f2 100644
--- a/embassy-usb-dfu/src/lib.rs
+++ b/embassy-usb-dfu/src/lib.rs
@@ -3,9 +3,9 @@ mod fmt;
3 3
4pub mod consts; 4pub mod consts;
5 5
6#[cfg(feature = "bootloader")] 6#[cfg(feature = "dfu")]
7mod bootloader; 7mod bootloader;
8#[cfg(feature = "bootloader")] 8#[cfg(feature = "dfu")]
9pub use self::bootloader::*; 9pub use self::bootloader::*;
10 10
11#[cfg(feature = "application")] 11#[cfg(feature = "application")]
@@ -14,8 +14,8 @@ mod application;
14pub use self::application::*; 14pub use self::application::*;
15 15
16#[cfg(any( 16#[cfg(any(
17 all(feature = "bootloader", feature = "application"), 17 all(feature = "dfu", feature = "application"),
18 not(any(feature = "bootloader", feature = "application")) 18 not(any(feature = "dfu", feature = "application"))
19))] 19))]
20compile_error!("usb-dfu must be compiled with exactly one of `bootloader`, or `application` features"); 20compile_error!("usb-dfu must be compiled with exactly one of `bootloader`, or `application` features");
21 21