Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Remove the crlf feature
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebraham committed Jun 27, 2023
1 parent 5cf5a8c commit f6c0eb4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ critical-section = { version = "1.1.1", optional = true }

[features]
default = ["uart", "critical-section", "colors"]

crlf = []

log = ["dep:log"]

# You must enable exactly 1 of the below features to support the correct chip:
Expand Down
14 changes: 1 addition & 13 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub mod logger;
#[cfg(feature = "rtt")]
mod rtt;

#[cfg(all(not(feature = "no-op"), not(feature = "crlf")))]
#[cfg(not(feature = "no-op"))]
#[macro_export]
macro_rules! println {
($($arg:tt)*) => {{
Expand All @@ -16,18 +16,6 @@ macro_rules! println {
}};
}

#[cfg(all(not(feature = "no-op"), feature = "crlf"))]
#[macro_export]
macro_rules! println {
($($arg:tt)*) => {{
{
use core::fmt::Write;
write!($crate::Printer, $($arg)*).ok();
write!($crate::Printer, "\r\n").ok();
}
}};
}

#[cfg(not(feature = "no-op"))]
#[macro_export]
macro_rules! print {
Expand Down

0 comments on commit f6c0eb4

Please sign in to comment.