Update k3ng_keyer.ino (#115)

Previously, when exiting Command Mode the screen was cleared and left blank. The display would then only be restored if you entered a character from the paddles or pressed a memory button.
This code always restores the display as you exit Command Mode. It does this simply by rewriting the saved screen buffer arrays to the display.
Only relevant if FEATURE_DISPLAY is defined.
The code for the for loop was plagiarised from the service_display() function.
pull/86/head^2
VK2EFL 2021-12-17 12:59:51 +11:00 zatwierdzone przez GitHub
rodzic 389077d580
commit f41d349a4e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -8059,6 +8059,14 @@ void command_mode() {
#ifdef OPTION_WATCHDOG_TIMER
wdt_enable(WDTO_4S);
#endif //OPTION_WATCHDOG_TIMER
#ifdef FEATURE_DISPLAY
lcd.clear();
for (int x = 0; x < LCD_ROWS; x++) { // as we exit, redraw the display that we had before we went into Command Mode
lcd.setCursor(0, x);
lcd.print(lcd_scroll_buffer[x]);
}
#endif // FEATURE_DISPLAY
}
#endif //FEATURE_COMMAND_MODE