Command::Debug => {
self.debug = !self.debug;
},
- Command::PauseDisplay => { no_display = true; },
- Command::ResumeDisplay => { no_display = false; },
+ Command::PauseDisplay => {
+ no_display = true;
+ if !self.paused {
+ device.pause();
+ }
+ },
+ Command::ResumeDisplay => {
+ no_display = false;
+ if !self.paused {
+ device.resume();
+ }
+ },
};
if !no_display {
print!("\r{:60}\r", ' ');