Преглед на файлове

Merge pull request #7253 from thinkyhead/bf_busy_protocol

"Keepalive" is now "Busy protocol"
Scott Lahteine преди 7 години
родител
ревизия
2cb308fb53
променени са 32 файла, в които са добавени 49 реда и са изтрити 6 реда
  1. 1
    0
      Marlin/Configuration.h
  2. 18
    6
      Marlin/Marlin_main.cpp
  3. 1
    0
      Marlin/example_configurations/Anet/A6/Configuration.h
  4. 1
    0
      Marlin/example_configurations/CL-260/Configuration.h
  5. 1
    0
      Marlin/example_configurations/Cartesio/Configuration.h
  6. 1
    0
      Marlin/example_configurations/Felix/Configuration.h
  7. 1
    0
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  8. 1
    0
      Marlin/example_configurations/FolgerTech-i3-2020/Configuration.h
  9. 1
    0
      Marlin/example_configurations/Hephestos/Configuration.h
  10. 1
    0
      Marlin/example_configurations/Hephestos_2/Configuration.h
  11. 1
    0
      Marlin/example_configurations/Infitary-i3-M508/Configuration.h
  12. 1
    0
      Marlin/example_configurations/K8200/Configuration.h
  13. 1
    0
      Marlin/example_configurations/K8400/Configuration.h
  14. 1
    0
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  15. 1
    0
      Marlin/example_configurations/M150/Configuration.h
  16. 1
    0
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  17. 1
    0
      Marlin/example_configurations/RigidBot/Configuration.h
  18. 1
    0
      Marlin/example_configurations/SCARA/Configuration.h
  19. 1
    0
      Marlin/example_configurations/TAZ4/Configuration.h
  20. 1
    0
      Marlin/example_configurations/TinyBoy2/Configuration.h
  21. 1
    0
      Marlin/example_configurations/WITBOX/Configuration.h
  22. 1
    0
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  23. 1
    0
      Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h
  24. 1
    0
      Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h
  25. 1
    0
      Marlin/example_configurations/delta/generic/Configuration.h
  26. 1
    0
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  27. 1
    0
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  28. 1
    0
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  29. 1
    0
      Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h
  30. 1
    0
      Marlin/example_configurations/makibox/Configuration.h
  31. 1
    0
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  32. 1
    0
      Marlin/example_configurations/wt150/Configuration.h

+ 1
- 0
Marlin/Configuration.h Целия файл

@@ -1002,6 +1002,7 @@
1002 1002
 //
1003 1003
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1004 1004
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1005
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1005 1006
 
1006 1007
 //
1007 1008
 // M100 Free Memory Watcher

+ 18
- 6
Marlin/Marlin_main.cpp Целия файл

@@ -7302,7 +7302,9 @@ inline void gcode_M109() {
7302 7302
   wait_for_heatup = true;
7303 7303
   millis_t now, next_temp_ms = 0, next_cool_check_ms = 0;
7304 7304
 
7305
-  KEEPALIVE_STATE(NOT_BUSY);
7305
+  #if DISABLED(BUSY_WHILE_HEATING)
7306
+    KEEPALIVE_STATE(NOT_BUSY);
7307
+  #endif
7306 7308
 
7307 7309
   #if ENABLED(PRINTER_EVENT_LEDS)
7308 7310
     const float start_temp = thermalManager.degHotend(target_extruder);
@@ -7385,7 +7387,9 @@ inline void gcode_M109() {
7385 7387
     #endif
7386 7388
   }
7387 7389
 
7388
-  KEEPALIVE_STATE(IN_HANDLER);
7390
+  #if DISABLED(BUSY_WHILE_HEATING)
7391
+    KEEPALIVE_STATE(IN_HANDLER);
7392
+  #endif
7389 7393
 }
7390 7394
 
7391 7395
 #if HAS_TEMP_BED
@@ -7429,7 +7433,9 @@ inline void gcode_M109() {
7429 7433
     wait_for_heatup = true;
7430 7434
     millis_t now, next_temp_ms = 0, next_cool_check_ms = 0;
7431 7435
 
7432
-    KEEPALIVE_STATE(NOT_BUSY);
7436
+    #if DISABLED(BUSY_WHILE_HEATING)
7437
+      KEEPALIVE_STATE(NOT_BUSY);
7438
+    #endif
7433 7439
 
7434 7440
     target_extruder = active_extruder; // for print_heaterstates
7435 7441
 
@@ -7504,7 +7510,9 @@ inline void gcode_M109() {
7504 7510
     } while (wait_for_heatup && TEMP_BED_CONDITIONS);
7505 7511
 
7506 7512
     if (wait_for_heatup) LCD_MESSAGEPGM(MSG_BED_DONE);
7507
-    KEEPALIVE_STATE(IN_HANDLER);
7513
+    #if DISABLED(BUSY_WHILE_HEATING)
7514
+      KEEPALIVE_STATE(IN_HANDLER);
7515
+    #endif
7508 7516
   }
7509 7517
 
7510 7518
 #endif // HAS_TEMP_BED
@@ -8818,11 +8826,15 @@ inline void gcode_M303() {
8818 8826
     if (WITHIN(e, 0, HOTENDS - 1))
8819 8827
       target_extruder = e;
8820 8828
 
8821
-    KEEPALIVE_STATE(NOT_BUSY); // don't send "busy: processing" messages during autotune output
8829
+    #if DISABLED(BUSY_WHILE_HEATING)
8830
+      KEEPALIVE_STATE(NOT_BUSY);
8831
+    #endif
8822 8832
 
8823 8833
     thermalManager.PID_autotune(temp, e, c, u);
8824 8834
 
8825
-    KEEPALIVE_STATE(IN_HANDLER);
8835
+    #if DISABLED(BUSY_WHILE_HEATING)
8836
+      KEEPALIVE_STATE(IN_HANDLER);
8837
+    #endif
8826 8838
   #else
8827 8839
     SERIAL_ERROR_START();
8828 8840
     SERIAL_ERRORLNPGM(MSG_ERR_M303_DISABLED);

+ 1
- 0
Marlin/example_configurations/Anet/A6/Configuration.h Целия файл

@@ -1158,6 +1158,7 @@
1158 1158
 //
1159 1159
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1160 1160
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1161
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1161 1162
 
1162 1163
 //
1163 1164
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/CL-260/Configuration.h Целия файл

@@ -999,6 +999,7 @@
999 999
 //
1000 1000
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1001 1001
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1002
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1002 1003
 
1003 1004
 //
1004 1005
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/Cartesio/Configuration.h Целия файл

@@ -996,6 +996,7 @@
996 996
 //
997 997
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
998 998
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
999
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
999 1000
 
1000 1001
 //
1001 1002
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/Felix/Configuration.h Целия файл

@@ -980,6 +980,7 @@
980 980
 //
981 981
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
982 982
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
983
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
983 984
 
984 985
 //
985 986
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/Felix/DUAL/Configuration.h Целия файл

@@ -980,6 +980,7 @@
980 980
 //
981 981
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
982 982
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
983
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
983 984
 
984 985
 //
985 986
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/FolgerTech-i3-2020/Configuration.h Целия файл

@@ -1002,6 +1002,7 @@
1002 1002
 //
1003 1003
 //#define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1004 1004
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1005
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1005 1006
 
1006 1007
 //
1007 1008
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/Hephestos/Configuration.h Целия файл

@@ -988,6 +988,7 @@
988 988
 //
989 989
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
990 990
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
991
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
991 992
 
992 993
 //
993 994
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/Hephestos_2/Configuration.h Целия файл

@@ -991,6 +991,7 @@
991 991
 //
992 992
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
993 993
 #define DEFAULT_KEEPALIVE_INTERVAL 10 // Number of seconds between "busy" messages. Set with M113.
994
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
994 995
 
995 996
 //
996 997
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/Infitary-i3-M508/Configuration.h Целия файл

@@ -985,6 +985,7 @@
985 985
 //
986 986
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
987 987
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
988
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
988 989
 
989 990
 //
990 991
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/K8200/Configuration.h Целия файл

@@ -1027,6 +1027,7 @@
1027 1027
 //
1028 1028
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1029 1029
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1030
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1030 1031
 
1031 1032
 //
1032 1033
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/K8400/Configuration.h Целия файл

@@ -998,6 +998,7 @@
998 998
 //
999 999
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1000 1000
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1001
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1001 1002
 
1002 1003
 //
1003 1004
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/K8400/Dual-head/Configuration.h Целия файл

@@ -998,6 +998,7 @@
998 998
 //
999 999
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1000 1000
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1001
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1001 1002
 
1002 1003
 //
1003 1004
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/M150/Configuration.h Целия файл

@@ -1025,6 +1025,7 @@
1025 1025
 //
1026 1026
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1027 1027
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1028
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1028 1029
 
1029 1030
 //
1030 1031
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h Целия файл

@@ -998,6 +998,7 @@
998 998
 //
999 999
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1000 1000
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1001
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1001 1002
 
1002 1003
 //
1003 1004
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/RigidBot/Configuration.h Целия файл

@@ -996,6 +996,7 @@
996 996
 //
997 997
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
998 998
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
999
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
999 1000
 
1000 1001
 //
1001 1002
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/SCARA/Configuration.h Целия файл

@@ -1010,6 +1010,7 @@
1010 1010
 //
1011 1011
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1012 1012
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1013
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1013 1014
 
1014 1015
 //
1015 1016
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/TAZ4/Configuration.h Целия файл

@@ -1017,6 +1017,7 @@
1017 1017
 //
1018 1018
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1019 1019
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1020
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1020 1021
 
1021 1022
 //
1022 1023
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/TinyBoy2/Configuration.h Целия файл

@@ -1054,6 +1054,7 @@
1054 1054
 //
1055 1055
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1056 1056
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1057
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1057 1058
 
1058 1059
 //
1059 1060
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/WITBOX/Configuration.h Целия файл

@@ -988,6 +988,7 @@
988 988
 //
989 989
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
990 990
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
991
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
991 992
 
992 993
 //
993 994
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/adafruit/ST7565/Configuration.h Целия файл

@@ -998,6 +998,7 @@
998 998
 //
999 999
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1000 1000
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1001
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1001 1002
 
1002 1003
 //
1003 1004
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h Целия файл

@@ -1122,6 +1122,7 @@
1122 1122
 //
1123 1123
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1124 1124
 #define DEFAULT_KEEPALIVE_INTERVAL 5  // Number of seconds between "busy" messages. Set with M113.
1125
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1125 1126
 
1126 1127
 //
1127 1128
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h Целия файл

@@ -1117,6 +1117,7 @@
1117 1117
 //
1118 1118
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1119 1119
 #define DEFAULT_KEEPALIVE_INTERVAL 5  // Number of seconds between "busy" messages. Set with M113.
1120
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1120 1121
 
1121 1122
 //
1122 1123
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/delta/generic/Configuration.h Целия файл

@@ -1107,6 +1107,7 @@
1107 1107
 //
1108 1108
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1109 1109
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1110
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1110 1111
 
1111 1112
 //
1112 1113
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/delta/kossel_mini/Configuration.h Целия файл

@@ -1110,6 +1110,7 @@
1110 1110
 //
1111 1111
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1112 1112
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1113
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1113 1114
 
1114 1115
 //
1115 1116
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/delta/kossel_pro/Configuration.h Целия файл

@@ -1115,6 +1115,7 @@
1115 1115
 //
1116 1116
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1117 1117
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1118
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1118 1119
 
1119 1120
 //
1120 1121
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/delta/kossel_xl/Configuration.h Целия файл

@@ -1173,6 +1173,7 @@
1173 1173
 //
1174 1174
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1175 1175
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1176
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1176 1177
 
1177 1178
 //
1178 1179
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h Целия файл

@@ -1014,6 +1014,7 @@
1014 1014
 //
1015 1015
 //#define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1016 1016
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1017
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1017 1018
 
1018 1019
 //
1019 1020
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/makibox/Configuration.h Целия файл

@@ -1001,6 +1001,7 @@
1001 1001
 //
1002 1002
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1003 1003
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1004
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1004 1005
 
1005 1006
 //
1006 1007
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration.h Целия файл

@@ -993,6 +993,7 @@
993 993
 //
994 994
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
995 995
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
996
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
996 997
 
997 998
 //
998 999
 // M100 Free Memory Watcher

+ 1
- 0
Marlin/example_configurations/wt150/Configuration.h Целия файл

@@ -1004,6 +1004,7 @@
1004 1004
 //
1005 1005
 #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
1006 1006
 #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
1007
+#define BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
1007 1008
 
1008 1009
 //
1009 1010
 // M100 Free Memory Watcher

Loading…
Отказ
Запис