Browse Source

Undo stupid hack for an error because of some compiler issue in the past

Alex Voinea 3 years ago
parent
commit
080c44cb2e
1 changed files with 2 additions and 3 deletions
  1. 2 3
      Firmware/ultralcd.cpp

+ 2 - 3
Firmware/ultralcd.cpp

@@ -395,10 +395,9 @@ static uint8_t menu_item_sdfile(const char* str_fn, char* str_fnl)
 		}
 		if (menu_clicked && (lcd_encoder == menu_item))
 		{
-		    lcd_consume_click();
+			lcd_consume_click();
 			menu_action_sdfile(str_fn);
-			/* return */ menu_item_ret();
-			return 1;
+			return menu_item_ret();
 		}
 	}
 	menu_item++;