Skip to content

Commit 26ed278

Browse files
authored
Merge pull request #4763 from sarusani/RemoveLoadMenuOnAutoload
Remove lcd_menu_AutoLoadFilament
2 parents 6c6476c + 2990763 commit 26ed278

15 files changed

+49
-6
lines changed

Firmware/messages.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,9 @@ extern const char MSG_LOADING_COLOR [] PROGMEM_I1 = ISTR("Loading color"); ////M
253253
extern const char MSG_CORRECTLY [] PROGMEM_I1 = ISTR("Changed correctly"); ////MSG_CORRECTLY c=19
254254
extern const char MSG_NOT_LOADED [] PROGMEM_I1 = ISTR("Filament not loaded"); ////MSG_NOT_LOADED c=19
255255
extern const char MSG_NOT_COLOR [] PROGMEM_I1 = ISTR("Color not correct"); ////MSG_NOT_COLOR c=19
256+
#ifndef REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
256257
extern const char MSG_AUTOLOADING_ENABLED [] PROGMEM_I1 = ISTR("Autoloading filament is active, just press the knob and insert filament..."); ////MSG_AUTOLOADING_ENABLED c=20 r=4
258+
#endif //REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
257259
extern const char MSG_FILAMENT_USED [] PROGMEM_I1 = ISTR("Filament used"); ////MSG_FILAMENT_USED c=19
258260
extern const char MSG_PRINT_TIME [] PROGMEM_I1 = ISTR("Print time"); ////MSG_PRINT_TIME c=19
259261
extern const char MSG_TOTAL_FILAMENT [] PROGMEM_I1 = ISTR("Total filament"); ////MSG_TOTAL_FILAMENT c=19

Firmware/messages.h

+2
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@ extern const char MSG_LOADING_COLOR [];
252252
extern const char MSG_CORRECTLY [];
253253
extern const char MSG_NOT_LOADED [];
254254
extern const char MSG_NOT_COLOR [];
255+
#ifndef REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
255256
extern const char MSG_AUTOLOADING_ENABLED [];
257+
#endif //REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
256258
extern const char MSG_FILAMENT_USED [];
257259
extern const char MSG_PRINT_TIME [];
258260
extern const char MSG_TOTAL_FILAMENT [];

Firmware/ultralcd.cpp

+9-6
Original file line numberDiff line numberDiff line change
@@ -2296,13 +2296,13 @@ void lcd_load_filament_color_check()
22962296
}
22972297
}
22982298

2299-
#ifdef FILAMENT_SENSOR
2299+
#if defined(FILAMENT_SENSOR) && !defined(REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY)
23002300
static void lcd_menu_AutoLoadFilament()
23012301
{
23022302
lcd_display_message_fullscreen_nonBlocking_P(_T(MSG_AUTOLOADING_ENABLED));
23032303
menu_back_if_clicked();
23042304
}
2305-
#endif //FILAMENT_SENSOR
2305+
#endif //FILAMENT_SENSOR && REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
23062306

23072307
static void preheat_or_continue(FilamentAction action) {
23082308

@@ -5351,13 +5351,16 @@ static void lcd_main_menu()
53515351
if (!fsensor.getAutoLoadEnabled()) {
53525352
MENU_ITEM_SUBMENU_P(_T(MSG_LOAD_FILAMENT), lcd_LoadFilament);
53535353
}
5354-
if (!fsensor.getFilamentPresent()) {
5354+
if (fsensor.getFilamentPresent()) {
5355+
MENU_ITEM_SUBMENU_P(_T(MSG_UNLOAD_FILAMENT), lcd_unLoadFilament);
5356+
}
5357+
#ifndef REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
5358+
else {
53555359
if (fsensor.getAutoLoadEnabled()) {
53565360
MENU_ITEM_SUBMENU_P(_T(MSG_AUTOLOAD_FILAMENT), lcd_menu_AutoLoadFilament);
5357-
}
5358-
} else {
5359-
MENU_ITEM_SUBMENU_P(_T(MSG_UNLOAD_FILAMENT), lcd_unLoadFilament);
5361+
}
53605362
}
5363+
#endif //REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
53615364
} else {
53625365
#endif //FILAMENT_SENSOR
53635366
MENU_ITEM_SUBMENU_P(_T(MSG_LOAD_FILAMENT), lcd_LoadFilament);

Firmware/variants/MK25-RAMBo10a.h

+3
Original file line numberDiff line numberDiff line change
@@ -527,4 +527,7 @@
527527
//Show filename instead of print time after SD card print finished
528528
//#define SHOW_FILENAME_AFTER_FINISH
529529

530+
//Remove the "AutoLoad filament" LCD menu entry if autoload is enabled.
531+
//#define REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
532+
530533
#endif //__CONFIGURATION_PRUSA_H

Firmware/variants/MK25-RAMBo13a.h

+3
Original file line numberDiff line numberDiff line change
@@ -531,4 +531,7 @@
531531
//Show filename instead of print time after SD card print finished
532532
//#define SHOW_FILENAME_AFTER_FINISH
533533

534+
//Remove the "AutoLoad filament" LCD menu entry if autoload is enabled.
535+
//#define REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
536+
534537
#endif //__CONFIGURATION_PRUSA_H

Firmware/variants/MK25S-RAMBo10a.h

+3
Original file line numberDiff line numberDiff line change
@@ -535,4 +535,7 @@
535535
//Show filename instead of print time after SD card print finished
536536
//#define SHOW_FILENAME_AFTER_FINISH
537537

538+
//Remove the "AutoLoad filament" LCD menu entry if autoload is enabled.
539+
//#define REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
540+
538541
#endif //__CONFIGURATION_PRUSA_H

Firmware/variants/MK25S-RAMBo13a.h

+3
Original file line numberDiff line numberDiff line change
@@ -536,4 +536,7 @@
536536
//Show filename instead of print time after SD card print finished
537537
//#define SHOW_FILENAME_AFTER_FINISH
538538

539+
//Remove the "AutoLoad filament" LCD menu entry if autoload is enabled.
540+
//#define REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
541+
539542
#endif //__CONFIGURATION_PRUSA_H

Firmware/variants/MK3-E3DREVO.h

+3
Original file line numberDiff line numberDiff line change
@@ -694,4 +694,7 @@
694694
//Show filename instead of print time after SD card print finished
695695
//#define SHOW_FILENAME_AFTER_FINISH
696696

697+
//Remove the "AutoLoad filament" LCD menu entry if autoload is enabled.
698+
//#define REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
699+
697700
#endif //__CONFIGURATION_PRUSA_H

Firmware/variants/MK3-E3DREVO_HF_60W.h

+3
Original file line numberDiff line numberDiff line change
@@ -695,4 +695,7 @@
695695
//Show filename instead of print time after SD card print finished
696696
//#define SHOW_FILENAME_AFTER_FINISH
697697

698+
//Remove the "AutoLoad filament" LCD menu entry if autoload is enabled.
699+
//#define REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
700+
698701
#endif //__CONFIGURATION_PRUSA_H

Firmware/variants/MK3.h

+3
Original file line numberDiff line numberDiff line change
@@ -697,4 +697,7 @@
697697
//Show filename instead of print time after SD card print finished
698698
//#define SHOW_FILENAME_AFTER_FINISH
699699

700+
//Remove the "AutoLoad filament" LCD menu entry if autoload is enabled.
701+
//#define REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
702+
700703
#endif //__CONFIGURATION_PRUSA_H

Firmware/variants/MK3S-E3DREVO.h

+3
Original file line numberDiff line numberDiff line change
@@ -706,4 +706,7 @@
706706
//Show filename instead of print time after SD card print finished
707707
//#define SHOW_FILENAME_AFTER_FINISH
708708

709+
//Remove the "AutoLoad filament" LCD menu entry if autoload is enabled.
710+
//#define REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
711+
709712
#endif //__CONFIGURATION_PRUSA_H

Firmware/variants/MK3S-E3DREVO_HF_60W.h

+3
Original file line numberDiff line numberDiff line change
@@ -707,4 +707,7 @@
707707
//Show filename instead of print time after SD card print finished
708708
//#define SHOW_FILENAME_AFTER_FINISH
709709

710+
//Remove the "AutoLoad filament" LCD menu entry if autoload is enabled.
711+
//#define REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
712+
710713
#endif //__CONFIGURATION_PRUSA_H

Firmware/variants/MK3S.h

+3
Original file line numberDiff line numberDiff line change
@@ -709,4 +709,7 @@
709709
//Show filename instead of print time after SD card print finished
710710
//#define SHOW_FILENAME_AFTER_FINISH
711711

712+
//Remove the "AutoLoad filament" LCD menu entry if autoload is enabled.
713+
//#define REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
714+
712715
#endif //__CONFIGURATION_PRUSA_H

Firmware/variants/obsolete/1_75mm_MK2-RAMBo10a-E3Dv6full.h

+3
Original file line numberDiff line numberDiff line change
@@ -437,4 +437,7 @@ THERMISTORS SETTINGS
437437
//Show filename instead of print time after SD card print finished
438438
//#define SHOW_FILENAME_AFTER_FINISH
439439

440+
//Remove the "AutoLoad filament" LCD menu entry if autoload is enabled.
441+
//#define REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
442+
440443
#endif //__CONFIGURATION_PRUSA_H

Firmware/variants/obsolete/1_75mm_MK2-RAMBo13a-E3Dv6full.h

+3
Original file line numberDiff line numberDiff line change
@@ -436,4 +436,7 @@ THERMISTORS SETTINGS
436436
//Show filename instead of print time after SD card print finished
437437
//#define SHOW_FILENAME_AFTER_FINISH
438438

439+
//Remove the "AutoLoad filament" LCD menu entry if autoload is enabled.
440+
//#define REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
441+
439442
#endif //__CONFIGURATION_PRUSA_H

0 commit comments

Comments
 (0)