Merge pull request #391 from STB3/Marlin_with_SD-Card_Change_Menu
Add SD-Card change and SD-Card init. for electronics equipped with LCD Display
This commit is contained in:
commit
5e2abfcdcd
@ -114,6 +114,8 @@
|
|||||||
#define MSG_CONTROL_RETRACT_RECOVERF "UnRet F"
|
#define MSG_CONTROL_RETRACT_RECOVERF "UnRet F"
|
||||||
#define MSG_AUTORETRACT "AutoRetr."
|
#define MSG_AUTORETRACT "AutoRetr."
|
||||||
#define MSG_FILAMENTCHANGE "Change filament"
|
#define MSG_FILAMENTCHANGE "Change filament"
|
||||||
|
#define MSG_INIT_SDCARD "Init. SD-Card"
|
||||||
|
#define MSG_CNG_SDCARD "Change SD-Card"
|
||||||
|
|
||||||
// Serial Console Messages
|
// Serial Console Messages
|
||||||
|
|
||||||
|
@ -199,9 +199,15 @@ static void lcd_main_menu()
|
|||||||
MENU_ITEM(function, MSG_STOP_PRINT, lcd_sdcard_stop);
|
MENU_ITEM(function, MSG_STOP_PRINT, lcd_sdcard_stop);
|
||||||
}else{
|
}else{
|
||||||
MENU_ITEM(submenu, MSG_CARD_MENU, lcd_sdcard_menu);
|
MENU_ITEM(submenu, MSG_CARD_MENU, lcd_sdcard_menu);
|
||||||
|
#if SDCARDDETECT < 1
|
||||||
|
MENU_ITEM(gcode, MSG_CNG_SDCARD, PSTR("M21")); // SD-card changed by user
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
MENU_ITEM(submenu, MSG_NO_CARD, lcd_sdcard_menu);
|
MENU_ITEM(submenu, MSG_NO_CARD, lcd_sdcard_menu);
|
||||||
|
#if SDCARDDETECT < 1
|
||||||
|
MENU_ITEM(gcode, MSG_INIT_SDCARD, PSTR("M21")); // Manually initialize the SD-card via user interface
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
END_MENU();
|
END_MENU();
|
||||||
|
Loading…
Reference in New Issue
Block a user