From 10f7020c02e0218cea9b2acbd9809fd5f436933b Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 21 Mar 2020 00:11:03 +0100 Subject: [PATCH] main: fix report padding --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f5a9203..551649e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -390,7 +390,7 @@ fn main() -> ! { while let Some(channel) = session.is_report_pending() { let state = &mut channel_states[usize::from(channel)]; let _ = writeln!( - socket, "t={} raw{}=0x{:04X}", + socket, "t={} raw{}=0x{:06X}", state.adc_time, channel, state.adc_data.unwrap_or(0) ).map(|_| { session.mark_report_sent(channel);