much progress, descriptors and sample rates getting basically working?

This commit is contained in:
2026-04-23 14:38:28 -07:00
parent ac6618a162
commit 539e0aab98
16 changed files with 1435 additions and 533 deletions
+30
View File
@@ -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::*;