fix: protocol frame parsing, add debug feature, refactor read logic

This commit is contained in:
lenn
2026-05-06 17:16:51 +08:00
parent a7ef583d74
commit f984f330e8
7 changed files with 123 additions and 31 deletions

View File

@@ -1,3 +1,16 @@
/// Debug-only print macro. Only outputs when compiled with `--features debug`.
#[cfg(feature = "debug")]
#[macro_export]
macro_rules! debug_println {
($($arg:tt)*) => { println!($($arg)*) };
}
#[cfg(not(feature = "debug"))]
#[macro_export]
macro_rules! debug_println {
($($arg:tt)*) => {};
}
pub mod channel;
pub mod config;
pub mod device;