diff --git a/src/protocol.rs b/src/protocol.rs index 005ce3e..99e4cd3 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -49,6 +49,7 @@ impl Protocol { self.segments.push(Segment::new(21)); self.segments.push(Segment::new(20)); self.segments.push(Segment::new(16)); + } pub fn start(&mut self) { @@ -91,7 +92,7 @@ impl Protocol { "display" => { //show the saved state on the display - for i in 0 .. 7 { + for i in 0 .. 8 { match self.segments[i].show() { Ok(_) => (), Err(e) => println!("{}", e),