main: fix report padding

This commit is contained in:
Astro 2020-03-21 00:11:03 +01:00
parent da65ea21a4
commit 10f7020c02

View File

@ -390,7 +390,7 @@ fn main() -> ! {
while let Some(channel) = session.is_report_pending() { while let Some(channel) = session.is_report_pending() {
let state = &mut channel_states[usize::from(channel)]; let state = &mut channel_states[usize::from(channel)];
let _ = writeln!( let _ = writeln!(
socket, "t={} raw{}=0x{:04X}", socket, "t={} raw{}=0x{:06X}",
state.adc_time, channel, state.adc_data.unwrap_or(0) state.adc_time, channel, state.adc_data.unwrap_or(0)
).map(|_| { ).map(|_| {
session.mark_report_sent(channel); session.mark_report_sent(channel);