Browse Source

bugfix in displaying segments

master
Michael Preisach 7 years ago
parent
commit
07280feb8d
  1. 3
      src/protocol.rs

3
src/protocol.rs

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

Loading…
Cancel
Save