diff --git a/src/pedal_operations.rs b/src/pedal_operations.rs index 8ee31fa..f146d6b 100644 --- a/src/pedal_operations.rs +++ b/src/pedal_operations.rs @@ -92,7 +92,6 @@ impl Pedals { /// Read the current values of the pedals pub fn read_pedals(&self, dev: & hidapi::HidDevice, peds: Vec) { - // This is kind of hacky, but for number of pedals == 2, the table shifts. let total_width = 55 as usize; // Check if passed pedal number is valid @@ -126,7 +125,7 @@ impl Pedals { None => "< None >".to_string(), }; - println!("│ Pedal {ped} │ {name:<-width$}│", ped = i, name = key_name, width = total_width - 14); + println!("│ Pedal {ped} │ {name:<-width$}│", ped = ped, name = key_name, width = total_width - 14); // Print spacer between lines if i != peds.len() - 1 {