LCD menu optimalization - sdcard menu fixed

This commit is contained in:
Robert Pelnar 2018-07-16 04:24:27 +02:00
parent b6223d5623
commit a7df5f368b
2 changed files with 4 additions and 0 deletions

View File

@ -197,7 +197,9 @@ uint8_t menu_item_function_P(const char* str, menu_func_t func)
if (menu_clicked && (lcd_encoder == menu_item)) if (menu_clicked && (lcd_encoder == menu_item))
{ {
menu_clicked = false; menu_clicked = false;
lcd_update_enabled = 0;
if (func) func(); if (func) func();
lcd_update_enabled = 1;
return menu_item_ret(); return menu_item_ret();
} }
} }

View File

@ -500,7 +500,9 @@ uint8_t menu_item_sddir(const char* str, const char* str_fn, char* str_fnl)
if (menu_clicked && (lcd_encoder == menu_item)) if (menu_clicked && (lcd_encoder == menu_item))
{ {
menu_clicked = false; menu_clicked = false;
lcd_update_enabled = 0;
menu_action_sddirectory(str_fn, str_fnl); menu_action_sddirectory(str_fn, str_fnl);
lcd_update_enabled = 1;
return menu_item_ret(); return menu_item_ret();
} }
} }