|
@@ -149,6 +149,7 @@
|
149
|
149
|
* M105 - Read current temp
|
150
|
150
|
* M106 - Fan on
|
151
|
151
|
* M107 - Fan off
|
|
152
|
+ * M108 - Cancel heatup and wait for the hotend and bed, this G-code is asynchronously handled in the get_serial_commands() parser
|
152
|
153
|
* M109 - Sxxx Wait for extruder current temp to reach target temp. Waits only when heating
|
153
|
154
|
* Rxxx Wait for extruder current temp to reach target temp. Waits when heating and cooling
|
154
|
155
|
* IF AUTOTEMP is enabled, S<mintemp> B<maxtemp> F<factor>. Exit autotemp by any M109 without F
|
|
@@ -1018,6 +1019,7 @@ inline void get_serial_commands() {
|
1018
|
1019
|
|
1019
|
1020
|
// If command was e-stop process now
|
1020
|
1021
|
if (strcmp(command, "M112") == 0) kill(PSTR(MSG_KILLED));
|
|
1022
|
+ if (strcmp(command, "M108") == 0) cancel_heatup = true;
|
1021
|
1023
|
|
1022
|
1024
|
#if defined(NO_TIMEOUTS) && NO_TIMEOUTS > 0
|
1023
|
1025
|
last_command_time = ms;
|
|
@@ -4406,6 +4408,13 @@ inline void gcode_M105() {
|
4406
|
4408
|
#endif // FAN_COUNT > 0
|
4407
|
4409
|
|
4408
|
4410
|
/**
|
|
4411
|
+ * M108: Cancel heatup and wait for the hotend and bed, this G-code is asynchronously handled in the get_serial_commands() parser
|
|
4412
|
+ */
|
|
4413
|
+inline void gcode_M108() {
|
|
4414
|
+ cancel_heatup = true;
|
|
4415
|
+}
|
|
4416
|
+
|
|
4417
|
+/**
|
4409
|
4418
|
* M109: Sxxx Wait for extruder(s) to reach temperature. Waits only when heating.
|
4410
|
4419
|
* Rxxx Wait for extruder(s) to reach temperature. Waits when heating and cooling.
|
4411
|
4420
|
*/
|
|
@@ -6667,6 +6676,10 @@ void process_next_command() {
|
6667
|
6676
|
KEEPALIVE_STATE(NOT_BUSY);
|
6668
|
6677
|
return; // "ok" already printed
|
6669
|
6678
|
|
|
6679
|
+ case 108:
|
|
6680
|
+ gcode_M108();
|
|
6681
|
+ break;
|
|
6682
|
+
|
6670
|
6683
|
case 109: // M109: Wait for temperature
|
6671
|
6684
|
gcode_M109();
|
6672
|
6685
|
break;
|