Rename bootloader feature to dfu
This commit is contained in:
@ -3,9 +3,9 @@ mod fmt;
|
||||
|
||||
pub mod consts;
|
||||
|
||||
#[cfg(feature = "bootloader")]
|
||||
#[cfg(feature = "dfu")]
|
||||
mod bootloader;
|
||||
#[cfg(feature = "bootloader")]
|
||||
#[cfg(feature = "dfu")]
|
||||
pub use self::bootloader::*;
|
||||
|
||||
#[cfg(feature = "application")]
|
||||
@ -14,8 +14,8 @@ mod application;
|
||||
pub use self::application::*;
|
||||
|
||||
#[cfg(any(
|
||||
all(feature = "bootloader", feature = "application"),
|
||||
not(any(feature = "bootloader", feature = "application"))
|
||||
all(feature = "dfu", feature = "application"),
|
||||
not(any(feature = "dfu", feature = "application"))
|
||||
))]
|
||||
compile_error!("usb-dfu must be compiled with exactly one of `bootloader`, or `application` features");
|
||||
|
||||
|
Reference in New Issue
Block a user