main: fix report padding
This commit is contained in:
parent
da65ea21a4
commit
10f7020c02
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user