Browse Source

User script return-to-status option

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

+ 1
- 0
Marlin/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/default/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/Anet/A6/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/Anet/A8/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/Cartesio/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/Felix/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/Folger Tech/i3-2020/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/Malyan/M150/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/RigidBot/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/SCARA/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/Sanguinololu/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/TinyBoy2/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/delta/generic/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/makibox/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h View File

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

+ 1
- 0
Marlin/src/config/examples/wt150/Configuration_adv.h View File

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

+ 4
- 1
Marlin/src/lcd/ultralcd.cpp View File

@@ -871,6 +871,9 @@ void kill_screen(const char* lcd_msg) {
871 871
       #if ENABLED(USER_SCRIPT_AUDIBLE_FEEDBACK)
872 872
         lcd_completion_feedback();
873 873
       #endif
874
+      #if ENABLED(USER_SCRIPT_RETURN)
875
+        lcd_return_to_status();
876
+      #endif
874 877
     }
875 878
 
876 879
     #if defined(USER_DESC_1) && defined(USER_GCODE_1)
@@ -3031,7 +3034,7 @@ void kill_screen(const char* lcd_msg) {
3031 3034
     #endif
3032 3035
     MENU_ITEM(function, MSG_RESTORE_FAILSAFE, lcd_factory_settings);
3033 3036
     #if ENABLED(EEPROM_SETTINGS)
3034
-      MENU_ITEM(gcode, MSG_INIT_EEPROM, PSTR("M502\nM500")); // TODO: Add "Are You Sure?" step
3037
+      MENU_ITEM(gcode, MSG_INIT_EEPROM, PSTR("M502\nM500"));
3035 3038
     #endif
3036 3039
 
3037 3040
     END_MENU();

Loading…
Cancel
Save