Преглед на файлове

Remove compiler bug workaround

These lines had to be done like that because gcc 5.4.0 would throw a segmentation fault when linking. With gcc 7.3.0, this is no longer an issue
Alex Voinea преди 2 години
родител
ревизия
8bb451129d
променени са 1 файла, в които са добавени 2 реда и са изтрити 4 реда
  1. 2 4
      Firmware/ultralcd.cpp

+ 2 - 4
Firmware/ultralcd.cpp

@@ -367,8 +367,7 @@ uint8_t menu_item_sddir(const char* str_fn, char* str_fnl)
 			lcd_update_enabled = false;
 			menu_action_sddirectory(str_fn);
 			lcd_update_enabled = true;
-			/* return */ menu_item_ret();
-			return 1;
+			return menu_item_ret();
 		}
 	}
 	menu_item++;
@@ -390,8 +389,7 @@ static uint8_t menu_item_sdfile(const char* str_fn, char* str_fnl)
 			lcd_update_enabled = false;
 			menu_action_sdfile(str_fn);
 			lcd_update_enabled = true;
-			/* return */ menu_item_ret();
-			return 1;
+			return menu_item_ret();
 		}
 	}
 	menu_item++;