gcode_process.c: turn heaters off for M0/M2
This ensures heaters don't spring back to life in case power is turned back on for something else.
This commit is contained in:
parent
f55e9ec051
commit
a6c22eed09
|
|
@ -341,6 +341,8 @@ void process_gcode_command() {
|
|||
#endif
|
||||
}
|
||||
else if (next_target.seen_M) {
|
||||
uint8_t i;
|
||||
|
||||
switch (next_target.M) {
|
||||
case 0:
|
||||
//? --- M0: machine stop ---
|
||||
|
|
@ -359,6 +361,8 @@ void process_gcode_command() {
|
|||
//? http://linuxcnc.org/handbook/RS274NGC_3/RS274NGC_33a.html#1002379
|
||||
//?
|
||||
queue_wait();
|
||||
for (i = 0; i < NUM_HEATERS; i++)
|
||||
temp_set(i, 0);
|
||||
power_off();
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue