Browse Source

Add `BUSY_WHILE_HEATING` for hosts that need it

pull/1/head
Scott Lahteine 8 years ago
parent
commit
fc9ce65095
  1. 1
      Marlin/Configuration.h
  2. 14
      Marlin/Marlin_main.cpp
  3. 1
      Marlin/example_configurations/Anet/A6/Configuration.h
  4. 1
      Marlin/example_configurations/CL-260/Configuration.h
  5. 1
      Marlin/example_configurations/Cartesio/Configuration.h
  6. 1
      Marlin/example_configurations/Felix/Configuration.h
  7. 1
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  8. 1
      Marlin/example_configurations/FolgerTech-i3-2020/Configuration.h
  9. 1
      Marlin/example_configurations/Hephestos/Configuration.h
  10. 1
      Marlin/example_configurations/Hephestos_2/Configuration.h
  11. 1
      Marlin/example_configurations/Infitary-i3-M508/Configuration.h
  12. 1
      Marlin/example_configurations/K8200/Configuration.h
  13. 1
      Marlin/example_configurations/K8400/Configuration.h
  14. 1
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  15. 1
      Marlin/example_configurations/M150/Configuration.h
  16. 1
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  17. 1
      Marlin/example_configurations/RigidBot/Configuration.h
  18. 1
      Marlin/example_configurations/SCARA/Configuration.h
  19. 1
      Marlin/example_configurations/TAZ4/Configuration.h
  20. 1
      Marlin/example_configurations/TinyBoy2/Configuration.h
  21. 1
      Marlin/example_configurations/WITBOX/Configuration.h
  22. 1
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  23. 1
      Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h
  24. 1
      Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h
  25. 1
      Marlin/example_configurations/delta/generic/Configuration.h
  26. 1
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  27. 1
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  28. 1
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  29. 1
      Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h
  30. 1
      Marlin/example_configurations/makibox/Configuration.h
  31. 1
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  32. 1
      Marlin/example_configurations/wt150/Configuration.h

1
Marlin/Configuration.h

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

14
Marlin/Marlin_main.cpp

@ -7302,7 +7302,9 @@ inline void gcode_M109() {
wait_for_heatup = true;
millis_t now, next_temp_ms = 0, next_cool_check_ms = 0;
#if DISABLED(BUSY_WHILE_HEATING)
KEEPALIVE_STATE(NOT_BUSY);
#endif
#if ENABLED(PRINTER_EVENT_LEDS)
const float start_temp = thermalManager.degHotend(target_extruder);
@ -7385,7 +7387,9 @@ inline void gcode_M109() {
#endif
}
#if DISABLED(BUSY_WHILE_HEATING)
KEEPALIVE_STATE(IN_HANDLER);
#endif
}
#if HAS_TEMP_BED
@ -7429,7 +7433,9 @@ inline void gcode_M109() {
wait_for_heatup = true;
millis_t now, next_temp_ms = 0, next_cool_check_ms = 0;
#if DISABLED(BUSY_WHILE_HEATING)
KEEPALIVE_STATE(NOT_BUSY);
#endif
target_extruder = active_extruder; // for print_heaterstates
@ -7504,7 +7510,9 @@ inline void gcode_M109() {
} while (wait_for_heatup && TEMP_BED_CONDITIONS);
if (wait_for_heatup) LCD_MESSAGEPGM(MSG_BED_DONE);
#if DISABLED(BUSY_WHILE_HEATING)
KEEPALIVE_STATE(IN_HANDLER);
#endif
}
#endif // HAS_TEMP_BED
@ -8818,11 +8826,15 @@ inline void gcode_M303() {
if (WITHIN(e, 0, HOTENDS - 1))
target_extruder = e;
KEEPALIVE_STATE(NOT_BUSY); // don't send "busy: processing" messages during autotune output
#if DISABLED(BUSY_WHILE_HEATING)
KEEPALIVE_STATE(NOT_BUSY);
#endif
thermalManager.PID_autotune(temp, e, c, u);
#if DISABLED(BUSY_WHILE_HEATING)
KEEPALIVE_STATE(IN_HANDLER);
#endif
#else
SERIAL_ERROR_START();
SERIAL_ERRORLNPGM(MSG_ERR_M303_DISABLED);

1
Marlin/example_configurations/Anet/A6/Configuration.h

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

1
Marlin/example_configurations/CL-260/Configuration.h

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

1
Marlin/example_configurations/Cartesio/Configuration.h

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

1
Marlin/example_configurations/Felix/Configuration.h

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

1
Marlin/example_configurations/Felix/DUAL/Configuration.h

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

1
Marlin/example_configurations/FolgerTech-i3-2020/Configuration.h

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

1
Marlin/example_configurations/Hephestos/Configuration.h

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

1
Marlin/example_configurations/Hephestos_2/Configuration.h

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

1
Marlin/example_configurations/Infitary-i3-M508/Configuration.h

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

1
Marlin/example_configurations/K8200/Configuration.h

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

1
Marlin/example_configurations/K8400/Configuration.h

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

1
Marlin/example_configurations/K8400/Dual-head/Configuration.h

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

1
Marlin/example_configurations/M150/Configuration.h

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

1
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h

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

1
Marlin/example_configurations/RigidBot/Configuration.h

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

1
Marlin/example_configurations/SCARA/Configuration.h

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

1
Marlin/example_configurations/TAZ4/Configuration.h

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

1
Marlin/example_configurations/TinyBoy2/Configuration.h

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

1
Marlin/example_configurations/WITBOX/Configuration.h

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

1
Marlin/example_configurations/adafruit/ST7565/Configuration.h

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

1
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h

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

1
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h

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

1
Marlin/example_configurations/delta/generic/Configuration.h

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

1
Marlin/example_configurations/delta/kossel_mini/Configuration.h

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

1
Marlin/example_configurations/delta/kossel_pro/Configuration.h

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

1
Marlin/example_configurations/delta/kossel_xl/Configuration.h

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

1
Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h

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

1
Marlin/example_configurations/makibox/Configuration.h

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

1
Marlin/example_configurations/tvrrug/Round2/Configuration.h

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

1
Marlin/example_configurations/wt150/Configuration.h

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

Loading…
Cancel
Save