|
|
|
@ -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), |
|
|
|
|