Browse Source

Merge pull request #7217 from benlye/add-kill-action

Add configurable action command to send when printer is killed
pull/1/head
Scott Lahteine 7 years ago
committed by GitHub
parent
commit
a2babb532d
  1. 7
      Marlin/Configuration_adv.h
  2. 4
      Marlin/Marlin_main.cpp
  3. 7
      Marlin/example_configurations/Anet/A6/Configuration_adv.h
  4. 7
      Marlin/example_configurations/Anet/A8/Configuration_adv.h
  5. 7
      Marlin/example_configurations/Cartesio/Configuration_adv.h
  6. 7
      Marlin/example_configurations/Felix/Configuration_adv.h
  7. 7
      Marlin/example_configurations/FolgerTech-i3-2020/Configuration_adv.h
  8. 7
      Marlin/example_configurations/Hephestos/Configuration_adv.h
  9. 7
      Marlin/example_configurations/Hephestos_2/Configuration_adv.h
  10. 7
      Marlin/example_configurations/K8200/Configuration_adv.h
  11. 7
      Marlin/example_configurations/K8400/Configuration_adv.h
  12. 7
      Marlin/example_configurations/M150/Configuration_adv.h
  13. 7
      Marlin/example_configurations/RigidBot/Configuration_adv.h
  14. 7
      Marlin/example_configurations/SCARA/Configuration_adv.h
  15. 7
      Marlin/example_configurations/TAZ4/Configuration_adv.h
  16. 7
      Marlin/example_configurations/TinyBoy2/Configuration_adv.h
  17. 7
      Marlin/example_configurations/WITBOX/Configuration_adv.h
  18. 7
      Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h
  19. 7
      Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h
  20. 7
      Marlin/example_configurations/delta/generic/Configuration_adv.h
  21. 7
      Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
  22. 7
      Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h
  23. 7
      Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h
  24. 7
      Marlin/example_configurations/gCreate_gMax1.5+/Configuration_adv.h
  25. 7
      Marlin/example_configurations/makibox/Configuration_adv.h
  26. 7
      Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h
  27. 7
      Marlin/example_configurations/wt150/Configuration_adv.h

7
Marlin/Configuration_adv.h

@ -1268,6 +1268,13 @@
#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

4
Marlin/Marlin_main.cpp

@ -12839,6 +12839,10 @@ void kill(const char* lcd_msg) {
_delay_ms(250); //Wait to ensure all interrupts routines stopped
thermalManager.disable_all_heaters(); //turn off heaters again
#if defined(ACTION_ON_KILL)
SERIAL_ECHOLNPGM("//action:" ACTION_ON_KILL);
#endif
#if HAS_POWER_SWITCH
SET_INPUT(PS_ON_PIN);
#endif

7
Marlin/example_configurations/Anet/A6/Configuration_adv.h

@ -1268,6 +1268,13 @@
#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/Anet/A8/Configuration_adv.h

@ -1268,6 +1268,13 @@
#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/Cartesio/Configuration_adv.h

@ -1261,6 +1261,13 @@
#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/Felix/Configuration_adv.h

@ -1261,6 +1261,13 @@
//#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/FolgerTech-i3-2020/Configuration_adv.h

@ -1274,6 +1274,13 @@
//#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/Hephestos/Configuration_adv.h

@ -1261,6 +1261,13 @@
//#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/Hephestos_2/Configuration_adv.h

@ -1244,6 +1244,13 @@
//#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/K8200/Configuration_adv.h

@ -1274,6 +1274,13 @@
//#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/K8400/Configuration_adv.h

@ -1261,6 +1261,13 @@
//#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/M150/Configuration_adv.h

@ -1268,6 +1268,13 @@
#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/RigidBot/Configuration_adv.h

@ -1261,6 +1261,13 @@
//#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/SCARA/Configuration_adv.h

@ -1261,6 +1261,13 @@
//#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/TAZ4/Configuration_adv.h

@ -1261,6 +1261,13 @@
//#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/TinyBoy2/Configuration_adv.h

@ -1264,6 +1264,13 @@
//#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/WITBOX/Configuration_adv.h

@ -1261,6 +1261,13 @@
//#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h

@ -1266,6 +1266,13 @@
#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h

@ -1265,6 +1265,13 @@
#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/delta/generic/Configuration_adv.h

@ -1263,6 +1263,13 @@
#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h

@ -1263,6 +1263,13 @@
#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h

@ -1268,6 +1268,13 @@
#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h

@ -1263,6 +1263,13 @@
//#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/gCreate_gMax1.5+/Configuration_adv.h

@ -1270,6 +1270,13 @@
//#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/makibox/Configuration_adv.h

@ -1261,6 +1261,13 @@
//#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h

@ -1261,6 +1261,13 @@
//#define USER_GCODE_5 "G28\nM503"
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

7
Marlin/example_configurations/wt150/Configuration_adv.h

@ -1351,6 +1351,13 @@
#endif
/**
* Specify an action command to send to the host when the printer is killed.
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
* The host must be configured to handle the action command.
*/
//#define ACTION_ON_KILL "poweroff"
//===========================================================================
//====================== I2C Position Encoder Settings ======================
//===========================================================================

Loading…
Cancel
Save