From 8d5e6a65cd16f992848655acabada85ca6594069 Mon Sep 17 00:00:00 2001 From: Robert Pelnar Date: Thu, 12 Jul 2018 16:27:02 +0200 Subject: [PATCH] LCD sdcard menu fix +removed debug code --- Firmware/cardreader.cpp | 1 - Firmware/ultralcd.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Firmware/cardreader.cpp b/Firmware/cardreader.cpp index 23d84dab..124ca2e0 100644 --- a/Firmware/cardreader.cpp +++ b/Firmware/cardreader.cpp @@ -968,7 +968,6 @@ void CardReader::presort() { delay(300); lcd_set_degree(); lcd_implementation_clear(); - lcd_update(2); #endif lcd_update(2); KEEPALIVE_STATE(NOT_BUSY); diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index e38d8092..a781fbca 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -575,6 +575,7 @@ uint8_t menu_item_function_P(const char* str, menuFunc_t func) if (lcdDrawUpdate) menu_draw_item_puts_P(' ', str); if (wasClicked && menu_enc_is_at_item()) { + wasClicked = false; if (func) func(); return menu_item_ret(); } @@ -6124,7 +6125,6 @@ void getFileDescription(char *name, char *description) { void lcd_sdcard_menu() { - printf_P(_N("menu sd\n")); uint8_t sdSort = eeprom_read_byte((uint8_t*)EEPROM_SD_SORT); int tempScrool = 0; if (presort_flag == true) {