much progress, descriptors and sample rates getting basically working?
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
// src/log.rs (or log/mod.rs)
|
||||
#[cfg(feature = "defmt")]
|
||||
pub use defmt::{debug, error, info, trace, warn};
|
||||
|
||||
#[cfg(not(feature = "defmt"))]
|
||||
mod no_defmt {
|
||||
#[macro_export]
|
||||
macro_rules! trace {
|
||||
($($t:tt)*) => {};
|
||||
}
|
||||
#[macro_export]
|
||||
macro_rules! debug {
|
||||
($($t:tt)*) => {};
|
||||
}
|
||||
#[macro_export]
|
||||
macro_rules! info {
|
||||
($($t:tt)*) => {};
|
||||
}
|
||||
#[macro_export]
|
||||
macro_rules! warn {
|
||||
($($t:tt)*) => {};
|
||||
}
|
||||
#[macro_export]
|
||||
macro_rules! error {
|
||||
($($t:tt)*) => {};
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "defmt"))]
|
||||
pub use no_defmt::*;
|
||||
Reference in New Issue
Block a user