diff --git a/src/main.rs b/src/main.rs index c3bfef8..678a6c8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -203,12 +203,12 @@ fn main() -> ! { if counter == 0 { led.toggle().unwrap(); - let mut bytes: [u8; 8] = [32, 32, 32, 32, 32, 194, 176, 67]; + let mut bytes: [u8; 8] = [32, 32, 32, 32, 194, 176, 67]; let text = match thermocouple.read_temperature(&mut timer.count_down()) { Ok(mut temperature) => { temperature >>= 2; - for i in (0..4).rev() { + for i in (0..3).rev() { bytes[i] = 48u8 + (temperature % 10) as u8; temperature /= 10;