diff --git a/rtt-target/src/print.rs b/rtt-target/src/print.rs index 59fc212..2241b34 100644 --- a/rtt-target/src/print.rs +++ b/rtt-target/src/print.rs @@ -148,15 +148,6 @@ macro_rules! rprint { /// range from 0 to 15. #[macro_export] macro_rules! rprintln { - () => { - $crate::print_impl::write_str(0, "\n"); - }; - ($fmt:expr) => { - $crate::print_impl::write_str(0, concat!($fmt, "\n")); - }; - ($fmt:expr, $($arg:tt)*) => { - $crate::print_impl::write_fmt(0, format_args!(concat!($fmt, "\n"), $($arg)*)); - }; (=> $terminal:expr) => { $crate::print_impl::write_str($terminal, "\n"); }; @@ -166,6 +157,15 @@ macro_rules! rprintln { (=> $terminal:expr, $fmt:expr, $($arg:tt)*) => { $crate::print_impl::write_fmt($terminal, format_args!(concat!($fmt, "\n"), $($arg)*)); }; + () => { + $crate::print_impl::write_str(0, "\n"); + }; + ($fmt:expr) => { + $crate::print_impl::write_str(0, concat!($fmt, "\n")); + }; + ($fmt:expr, $($arg:tt)*) => { + $crate::print_impl::write_fmt(0, format_args!(concat!($fmt, "\n"), $($arg)*)); + }; } /// Initializes RTT with a single up channel and sets it as the print channel for the printing