aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb-serial/src
diff options
context:
space:
mode:
authorAlex Martens <[email protected]>2022-09-24 09:42:06 -0700
committerAlex Martens <[email protected]>2022-09-24 09:42:06 -0700
commita45fb2d7183738bdcc020a9b1916fdfab469ec0c (patch)
tree76f94f38231833dfd159cf5101b9907fdfedd8f2 /embassy-usb-serial/src
parentdacbc9acd5969d3ef0dda8825c960e909008ce83 (diff)
usb: fix compile errors with the log feature
Diffstat (limited to 'embassy-usb-serial/src')
-rw-r--r--embassy-usb-serial/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-usb-serial/src/lib.rs b/embassy-usb-serial/src/lib.rs
index 27b536a6b..15c2bb0a7 100644
--- a/embassy-usb-serial/src/lib.rs
+++ b/embassy-usb-serial/src/lib.rs
@@ -268,7 +268,7 @@ impl<'d, D: Driver<'d>> CdcAcmClass<'d, D> {
268} 268}
269 269
270/// Number of stop bits for LineCoding 270/// Number of stop bits for LineCoding
271#[derive(Copy, Clone, PartialEq, Eq)] 271#[derive(Copy, Clone, Debug, PartialEq, Eq)]
272#[cfg_attr(feature = "defmt", derive(defmt::Format))] 272#[cfg_attr(feature = "defmt", derive(defmt::Format))]
273pub enum StopBits { 273pub enum StopBits {
274 /// 1 stop bit 274 /// 1 stop bit
@@ -292,7 +292,7 @@ impl From<u8> for StopBits {
292} 292}
293 293
294/// Parity for LineCoding 294/// Parity for LineCoding
295#[derive(Copy, Clone, PartialEq, Eq)] 295#[derive(Copy, Clone, Debug, PartialEq, Eq)]
296#[cfg_attr(feature = "defmt", derive(defmt::Format))] 296#[cfg_attr(feature = "defmt", derive(defmt::Format))]
297pub enum ParityType { 297pub enum ParityType {
298 None = 0, 298 None = 0,
@@ -316,7 +316,7 @@ impl From<u8> for ParityType {
316/// 316///
317/// This is provided by the host for specifying the standard UART parameters such as baud rate. Can 317/// This is provided by the host for specifying the standard UART parameters such as baud rate. Can
318/// be ignored if you don't plan to interface with a physical UART. 318/// be ignored if you don't plan to interface with a physical UART.
319#[derive(Clone, Copy)] 319#[derive(Clone, Copy, Debug)]
320#[cfg_attr(feature = "defmt", derive(defmt::Format))] 320#[cfg_attr(feature = "defmt", derive(defmt::Format))]
321pub struct LineCoding { 321pub struct LineCoding {
322 stop_bits: StopBits, 322 stop_bits: StopBits,