Browse Source

User script return-to-status option

pull/1/head
Tannoo 7 years ago
committed by Scott Lahteine
parent
commit
c869dc9745
  1. 1
      Marlin/Configuration_adv.h
  2. 1
      Marlin/src/config/default/Configuration_adv.h
  3. 1
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h
  4. 1
      Marlin/src/config/examples/Anet/A6/Configuration_adv.h
  5. 1
      Marlin/src/config/examples/Anet/A8/Configuration_adv.h
  6. 1
      Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h
  7. 1
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h
  8. 1
      Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h
  9. 1
      Marlin/src/config/examples/Cartesio/Configuration_adv.h
  10. 1
      Marlin/src/config/examples/Felix/Configuration_adv.h
  11. 1
      Marlin/src/config/examples/Folger Tech/i3-2020/Configuration_adv.h
  12. 1
      Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h
  13. 1
      Marlin/src/config/examples/Malyan/M150/Configuration_adv.h
  14. 1
      Marlin/src/config/examples/RigidBot/Configuration_adv.h
  15. 1
      Marlin/src/config/examples/SCARA/Configuration_adv.h
  16. 1
      Marlin/src/config/examples/Sanguinololu/Configuration_adv.h
  17. 1
      Marlin/src/config/examples/TinyBoy2/Configuration_adv.h
  18. 1
      Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h
  19. 1
      Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h
  20. 1
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
  21. 1
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
  22. 1
      Marlin/src/config/examples/delta/generic/Configuration_adv.h
  23. 1
      Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h
  24. 1
      Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h
  25. 1
      Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h
  26. 1
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h
  27. 1
      Marlin/src/config/examples/makibox/Configuration_adv.h
  28. 1
      Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h
  29. 1
      Marlin/src/config/examples/wt150/Configuration_adv.h
  30. 5
      Marlin/src/lcd/ultralcd.cpp

1
Marlin/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/default/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/Anet/A6/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/Anet/A8/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/Cartesio/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/Felix/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/Folger Tech/i3-2020/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/Malyan/M150/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/RigidBot/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/SCARA/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/Sanguinololu/Configuration_adv.h

@ -1261,6 +1261,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/TinyBoy2/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h

@ -1285,6 +1285,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h

@ -1274,6 +1274,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h

@ -1274,6 +1274,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/delta/generic/Configuration_adv.h

@ -1274,6 +1274,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h

@ -1274,6 +1274,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h

@ -1279,6 +1279,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h

@ -1274,6 +1274,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/makibox/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

1
Marlin/src/config/examples/wt150/Configuration_adv.h

@ -1272,6 +1272,7 @@
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
//#define USER_SCRIPT_RETURN // Return to status screen after a script
#define USER_DESC_1 "Home & UBL Info"
#define USER_GCODE_1 "G28\nG29 W"

5
Marlin/src/lcd/ultralcd.cpp

@ -871,6 +871,9 @@ void kill_screen(const char* lcd_msg) {
#if ENABLED(USER_SCRIPT_AUDIBLE_FEEDBACK)
lcd_completion_feedback();
#endif
#if ENABLED(USER_SCRIPT_RETURN)
lcd_return_to_status();
#endif
}
#if defined(USER_DESC_1) && defined(USER_GCODE_1)
@ -3031,7 +3034,7 @@ void kill_screen(const char* lcd_msg) {
#endif
MENU_ITEM(function, MSG_RESTORE_FAILSAFE, lcd_factory_settings);
#if ENABLED(EEPROM_SETTINGS)
MENU_ITEM(gcode, MSG_INIT_EEPROM, PSTR("M502\nM500")); // TODO: Add "Are You Sure?" step
MENU_ITEM(gcode, MSG_INIT_EEPROM, PSTR("M502\nM500"));
#endif
END_MENU();

Loading…
Cancel
Save