Kaynağa Gözat

Make audible user script feedback optional

Add a parameter to enable/disable audible user script feedback
benlye 6 yıl önce
ebeveyn
işleme
24af9e1bf4
28 değiştirilmiş dosya ile 30 ekleme ve 1 silme
  1. 1
    0
      Marlin/Configuration_adv.h
  2. 1
    0
      Marlin/example_configurations/AlephObjects/TAZ4/Configuration_adv.h
  3. 1
    0
      Marlin/example_configurations/Anet/A6/Configuration_adv.h
  4. 1
    0
      Marlin/example_configurations/Anet/A8/Configuration_adv.h
  5. 1
    0
      Marlin/example_configurations/BQ/Hephestos/Configuration_adv.h
  6. 1
    0
      Marlin/example_configurations/BQ/Hephestos_2/Configuration_adv.h
  7. 1
    0
      Marlin/example_configurations/BQ/WITBOX/Configuration_adv.h
  8. 1
    0
      Marlin/example_configurations/Cartesio/Configuration_adv.h
  9. 1
    0
      Marlin/example_configurations/Felix/Configuration_adv.h
  10. 1
    0
      Marlin/example_configurations/Folger Tech/i3-2020/Configuration_adv.h
  11. 1
    0
      Marlin/example_configurations/Infitary/i3-M508/Configuration_adv.h
  12. 1
    0
      Marlin/example_configurations/Malyan/M150/Configuration_adv.h
  13. 1
    0
      Marlin/example_configurations/RigidBot/Configuration_adv.h
  14. 1
    0
      Marlin/example_configurations/SCARA/Configuration_adv.h
  15. 1
    0
      Marlin/example_configurations/TinyBoy2/Configuration_adv.h
  16. 1
    0
      Marlin/example_configurations/Velleman/K8200/Configuration_adv.h
  17. 1
    0
      Marlin/example_configurations/Velleman/K8400/Configuration_adv.h
  18. 1
    0
      Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h
  19. 1
    0
      Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h
  20. 1
    0
      Marlin/example_configurations/delta/generic/Configuration_adv.h
  21. 1
    0
      Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
  22. 1
    0
      Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h
  23. 1
    0
      Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h
  24. 1
    0
      Marlin/example_configurations/gCreate/gMax1.5+/Configuration_adv.h
  25. 1
    0
      Marlin/example_configurations/makibox/Configuration_adv.h
  26. 1
    0
      Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h
  27. 1
    0
      Marlin/example_configurations/wt150/Configuration_adv.h
  28. 3
    1
      Marlin/ultralcd.cpp

+ 1
- 0
Marlin/Configuration_adv.h Dosyayı Görüntüle

@@ -1262,6 +1262,7 @@
1262 1262
 //#define CUSTOM_USER_MENUS
1263 1263
 #if ENABLED(CUSTOM_USER_MENUS)
1264 1264
   #define USER_SCRIPT_DONE "M117 User Script Done"
1265
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1265 1266
 
1266 1267
   #define USER_DESC_1 "Home & UBL Info"
1267 1268
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/AlephObjects/TAZ4/Configuration_adv.h Dosyayı Görüntüle

@@ -1255,6 +1255,7 @@
1255 1255
 //#define CUSTOM_USER_MENUS
1256 1256
 #if ENABLED(CUSTOM_USER_MENUS)
1257 1257
   #define USER_SCRIPT_DONE "M117 User Script Done"
1258
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1258 1259
 
1259 1260
   #define USER_DESC_1 "Home & UBL Info"
1260 1261
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/Anet/A6/Configuration_adv.h Dosyayı Görüntüle

@@ -1262,6 +1262,7 @@
1262 1262
 //#define CUSTOM_USER_MENUS
1263 1263
 #if ENABLED(CUSTOM_USER_MENUS)
1264 1264
   #define USER_SCRIPT_DONE "M117 User Script Done"
1265
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1265 1266
 
1266 1267
   #define USER_DESC_1 "Home & UBL Info"
1267 1268
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/Anet/A8/Configuration_adv.h Dosyayı Görüntüle

@@ -1262,6 +1262,7 @@
1262 1262
 //#define CUSTOM_USER_MENUS
1263 1263
 #if ENABLED(CUSTOM_USER_MENUS)
1264 1264
   #define USER_SCRIPT_DONE "M117 User Script Done"
1265
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1265 1266
 
1266 1267
   #define USER_DESC_1 "Home & UBL Info"
1267 1268
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/BQ/Hephestos/Configuration_adv.h Dosyayı Görüntüle

@@ -1255,6 +1255,7 @@
1255 1255
 //#define CUSTOM_USER_MENUS
1256 1256
 #if ENABLED(CUSTOM_USER_MENUS)
1257 1257
   #define USER_SCRIPT_DONE "M117 User Script Done"
1258
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1258 1259
 
1259 1260
   #define USER_DESC_1 "Home & UBL Info"
1260 1261
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/BQ/Hephestos_2/Configuration_adv.h Dosyayı Görüntüle

@@ -1238,6 +1238,7 @@
1238 1238
 //#define CUSTOM_USER_MENUS
1239 1239
 #if ENABLED(CUSTOM_USER_MENUS)
1240 1240
   #define USER_SCRIPT_DONE "M117 User Script Done"
1241
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1241 1242
 
1242 1243
   #define USER_DESC_1 "Home & UBL Info"
1243 1244
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/BQ/WITBOX/Configuration_adv.h Dosyayı Görüntüle

@@ -1255,6 +1255,7 @@
1255 1255
 //#define CUSTOM_USER_MENUS
1256 1256
 #if ENABLED(CUSTOM_USER_MENUS)
1257 1257
   #define USER_SCRIPT_DONE "M117 User Script Done"
1258
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1258 1259
 
1259 1260
   #define USER_DESC_1 "Home & UBL Info"
1260 1261
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/Cartesio/Configuration_adv.h Dosyayı Görüntüle

@@ -1255,6 +1255,7 @@
1255 1255
 //#define CUSTOM_USER_MENUS
1256 1256
 #if ENABLED(CUSTOM_USER_MENUS)
1257 1257
   #define USER_SCRIPT_DONE "M117 User Script Done"
1258
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1258 1259
 
1259 1260
   #define USER_DESC_1 "Home & UBL Info"
1260 1261
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/Felix/Configuration_adv.h Dosyayı Görüntüle

@@ -1255,6 +1255,7 @@
1255 1255
 //#define CUSTOM_USER_MENUS
1256 1256
 #if ENABLED(CUSTOM_USER_MENUS)
1257 1257
   #define USER_SCRIPT_DONE "M117 User Script Done"
1258
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1258 1259
 
1259 1260
   #define USER_DESC_1 "Home & UBL Info"
1260 1261
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/Folger Tech/i3-2020/Configuration_adv.h Dosyayı Görüntüle

@@ -1268,6 +1268,7 @@
1268 1268
 //#define CUSTOM_USER_MENUS
1269 1269
 #if ENABLED(CUSTOM_USER_MENUS)
1270 1270
   #define USER_SCRIPT_DONE "M117 User Script Done"
1271
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1271 1272
 
1272 1273
   #define USER_DESC_1 "Home & UBL Info"
1273 1274
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/Infitary/i3-M508/Configuration_adv.h Dosyayı Görüntüle

@@ -1251,6 +1251,7 @@
1251 1251
 //#define CUSTOM_USER_MENUS
1252 1252
 #if ENABLED(CUSTOM_USER_MENUS)
1253 1253
   #define USER_SCRIPT_DONE "M117 User Script Done"
1254
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1254 1255
 
1255 1256
   #define USER_DESC_1 "Home & UBL Info"
1256 1257
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/Malyan/M150/Configuration_adv.h Dosyayı Görüntüle

@@ -1262,6 +1262,7 @@
1262 1262
 //#define CUSTOM_USER_MENUS
1263 1263
 #if ENABLED(CUSTOM_USER_MENUS)
1264 1264
   #define USER_SCRIPT_DONE "M117 User Script Done"
1265
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1265 1266
 
1266 1267
   #define USER_DESC_1 "Home & UBL Info"
1267 1268
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/RigidBot/Configuration_adv.h Dosyayı Görüntüle

@@ -1255,6 +1255,7 @@
1255 1255
 //#define CUSTOM_USER_MENUS
1256 1256
 #if ENABLED(CUSTOM_USER_MENUS)
1257 1257
   #define USER_SCRIPT_DONE "M117 User Script Done"
1258
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1258 1259
 
1259 1260
   #define USER_DESC_1 "Home & UBL Info"
1260 1261
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/SCARA/Configuration_adv.h Dosyayı Görüntüle

@@ -1255,6 +1255,7 @@
1255 1255
 //#define CUSTOM_USER_MENUS
1256 1256
 #if ENABLED(CUSTOM_USER_MENUS)
1257 1257
   #define USER_SCRIPT_DONE "M117 User Script Done"
1258
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1258 1259
 
1259 1260
   #define USER_DESC_1 "Home & UBL Info"
1260 1261
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/TinyBoy2/Configuration_adv.h Dosyayı Görüntüle

@@ -1258,6 +1258,7 @@
1258 1258
 //#define CUSTOM_USER_MENUS
1259 1259
 #if ENABLED(CUSTOM_USER_MENUS)
1260 1260
   #define USER_SCRIPT_DONE "M117 User Script Done"
1261
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1261 1262
 
1262 1263
   #define USER_DESC_1 "Home & UBL Info"
1263 1264
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/Velleman/K8200/Configuration_adv.h Dosyayı Görüntüle

@@ -1268,6 +1268,7 @@
1268 1268
 //#define CUSTOM_USER_MENUS
1269 1269
 #if ENABLED(CUSTOM_USER_MENUS)
1270 1270
   #define USER_SCRIPT_DONE "M117 User Script Done"
1271
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1271 1272
 
1272 1273
   #define USER_DESC_1 "Home & UBL Info"
1273 1274
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/Velleman/K8400/Configuration_adv.h Dosyayı Görüntüle

@@ -1255,6 +1255,7 @@
1255 1255
 //#define CUSTOM_USER_MENUS
1256 1256
 #if ENABLED(CUSTOM_USER_MENUS)
1257 1257
   #define USER_SCRIPT_DONE "M117 User Script Done"
1258
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1258 1259
 
1259 1260
   #define USER_DESC_1 "Home & UBL Info"
1260 1261
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h Dosyayı Görüntüle

@@ -1260,6 +1260,7 @@
1260 1260
 //#define CUSTOM_USER_MENUS
1261 1261
 #if ENABLED(CUSTOM_USER_MENUS)
1262 1262
   #define USER_SCRIPT_DONE "M117 User Script Done"
1263
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1263 1264
 
1264 1265
   #define USER_DESC_1 "Home & UBL Info"
1265 1266
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h Dosyayı Görüntüle

@@ -1259,6 +1259,7 @@
1259 1259
 //#define CUSTOM_USER_MENUS
1260 1260
 #if ENABLED(CUSTOM_USER_MENUS)
1261 1261
   #define USER_SCRIPT_DONE "M117 User Script Done"
1262
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1262 1263
 
1263 1264
   #define USER_DESC_1 "Home & UBL Info"
1264 1265
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/delta/generic/Configuration_adv.h Dosyayı Görüntüle

@@ -1257,6 +1257,7 @@
1257 1257
 //#define CUSTOM_USER_MENUS
1258 1258
 #if ENABLED(CUSTOM_USER_MENUS)
1259 1259
   #define USER_SCRIPT_DONE "M117 User Script Done"
1260
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1260 1261
 
1261 1262
   #define USER_DESC_1 "Home & UBL Info"
1262 1263
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h Dosyayı Görüntüle

@@ -1257,6 +1257,7 @@
1257 1257
 //#define CUSTOM_USER_MENUS
1258 1258
 #if ENABLED(CUSTOM_USER_MENUS)
1259 1259
   #define USER_SCRIPT_DONE "M117 User Script Done"
1260
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1260 1261
 
1261 1262
   #define USER_DESC_1 "Home & UBL Info"
1262 1263
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h Dosyayı Görüntüle

@@ -1262,6 +1262,7 @@
1262 1262
 //#define CUSTOM_USER_MENUS
1263 1263
 #if ENABLED(CUSTOM_USER_MENUS)
1264 1264
   #define USER_SCRIPT_DONE "M117 User Script Done"
1265
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1265 1266
 
1266 1267
   #define USER_DESC_1 "Home & UBL Info"
1267 1268
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h Dosyayı Görüntüle

@@ -1257,6 +1257,7 @@
1257 1257
 //#define CUSTOM_USER_MENUS
1258 1258
 #if ENABLED(CUSTOM_USER_MENUS)
1259 1259
   #define USER_SCRIPT_DONE "M117 User Script Done"
1260
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1260 1261
 
1261 1262
   #define USER_DESC_1 "Home & UBL Info"
1262 1263
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/gCreate/gMax1.5+/Configuration_adv.h Dosyayı Görüntüle

@@ -1264,6 +1264,7 @@
1264 1264
 //#define CUSTOM_USER_MENUS
1265 1265
 #if ENABLED(CUSTOM_USER_MENUS)
1266 1266
   #define USER_SCRIPT_DONE "M117 User Script Done"
1267
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1267 1268
 
1268 1269
   #define USER_DESC_1 "Home & UBL Info"
1269 1270
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/makibox/Configuration_adv.h Dosyayı Görüntüle

@@ -1255,6 +1255,7 @@
1255 1255
 //#define CUSTOM_USER_MENUS
1256 1256
 #if ENABLED(CUSTOM_USER_MENUS)
1257 1257
   #define USER_SCRIPT_DONE "M117 User Script Done"
1258
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1258 1259
 
1259 1260
   #define USER_DESC_1 "Home & UBL Info"
1260 1261
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h Dosyayı Görüntüle

@@ -1255,6 +1255,7 @@
1255 1255
 //#define CUSTOM_USER_MENUS
1256 1256
 #if ENABLED(CUSTOM_USER_MENUS)
1257 1257
   #define USER_SCRIPT_DONE "M117 User Script Done"
1258
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1258 1259
 
1259 1260
   #define USER_DESC_1 "Home & UBL Info"
1260 1261
   #define USER_GCODE_1 "G28\nG29 W"

+ 1
- 0
Marlin/example_configurations/wt150/Configuration_adv.h Dosyayı Görüntüle

@@ -1262,6 +1262,7 @@
1262 1262
 //#define CUSTOM_USER_MENUS
1263 1263
 #if ENABLED(CUSTOM_USER_MENUS)
1264 1264
   #define USER_SCRIPT_DONE "M117 User Script Done"
1265
+  #define USER_SCRIPT_AUDIBLE_FEEDBACK
1265 1266
 
1266 1267
   #define USER_DESC_1 "Home & UBL Info"
1267 1268
   #define USER_GCODE_1 "G28\nG29 W"

+ 3
- 1
Marlin/ultralcd.cpp Dosyayı Görüntüle

@@ -836,7 +836,9 @@ void kill_screen(const char* lcd_msg) {
836 836
 
837 837
     void _lcd_user_gcode(const char * const cmd) {
838 838
       enqueue_and_echo_commands_P(cmd);
839
-      lcd_completion_feedback();
839
+      #if ENABLED(USER_SCRIPT_AUDIBLE_FEEDBACK)
840
+        lcd_completion_feedback();
841
+      #endif
840 842
     }
841 843
 
842 844
     #if defined(USER_DESC_1) && defined(USER_GCODE_1)

Loading…
İptal
Kaydet