|
@@ -631,7 +631,7 @@ void crashdet_cancel()
|
|
|
lcd_print_stop();
|
|
|
}else if(saved_printing_type == PRINTING_TYPE_USB){
|
|
|
SERIAL_ECHOLNRPGM(MSG_OCTOPRINT_CANCEL);
|
|
|
- SERIAL_PROTOCOLLNRPGM(MSG_OK);
|
|
|
+ cmdqueue_reset();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -2631,7 +2631,6 @@ void gcode_M105(uint8_t extruder)
|
|
|
}
|
|
|
#endif
|
|
|
SERIAL_PROTOCOLLN("");
|
|
|
- KEEPALIVE_STATE(NOT_BUSY);
|
|
|
}
|
|
|
|
|
|
#ifdef TMC2130
|
|
@@ -3679,14 +3678,12 @@ There are reasons why some G Codes aren't in numerical order.
|
|
|
void process_commands()
|
|
|
{
|
|
|
#ifdef FANCHECK
|
|
|
- if(fan_check_error){
|
|
|
- if(fan_check_error == EFCE_DETECTED){
|
|
|
- fan_check_error = EFCE_REPORTED;
|
|
|
-
|
|
|
- lcd_pause_print();
|
|
|
- }
|
|
|
- return;
|
|
|
- }
|
|
|
+ if(fan_check_error == EFCE_DETECTED){
|
|
|
+ fan_check_error = EFCE_REPORTED;
|
|
|
+
|
|
|
+ lcd_pause_print();
|
|
|
+ cmdqueue_serial_disabled = true;
|
|
|
+ }
|
|
|
#endif
|
|
|
|
|
|
if (!buflen) return;
|
|
@@ -6402,7 +6399,8 @@ Sigma_Exit:
|
|
|
SERIAL_PROTOCOLPGM("ok ");
|
|
|
gcode_M105(extruder);
|
|
|
|
|
|
- return;
|
|
|
+ cmdqueue_pop_front();
|
|
|
+
|
|
|
break;
|
|
|
}
|
|
|
|
|
@@ -6864,12 +6862,10 @@ Sigma_Exit:
|
|
|
SERIAL_ECHOPGM(STRINGIFY(EXTRUDERS));
|
|
|
SERIAL_ECHOPGM(" UUID:");
|
|
|
SERIAL_ECHOLNPGM(MACHINE_UUID);
|
|
|
- }
|
|
|
-
|
|
|
#ifdef EXTENDED_CAPABILITIES_REPORT
|
|
|
- extended_capabilities_report();
|
|
|
+ extended_capabilities_report();
|
|
|
#endif
|
|
|
-
|
|
|
+ }
|
|
|
break;
|
|
|
|
|
|
|
|
@@ -7995,6 +7991,7 @@ Sigma_Exit:
|
|
|
if (!isPrintPaused)
|
|
|
{
|
|
|
st_synchronize();
|
|
|
+ ClearToSend();
|
|
|
cmdqueue_pop_front();
|
|
|
lcd_pause_print();
|
|
|
}
|
|
@@ -9209,8 +9206,8 @@ void FlushSerialRequestResend()
|
|
|
|
|
|
void ClearToSend()
|
|
|
{
|
|
|
- previous_millis_cmd = _millis();
|
|
|
- if ((CMDBUFFER_CURRENT_TYPE == CMDBUFFER_CURRENT_TYPE_USB) || (CMDBUFFER_CURRENT_TYPE == CMDBUFFER_CURRENT_TYPE_USB_WITH_LINENR))
|
|
|
+ previous_millis_cmd = _millis();
|
|
|
+ if (buflen && ((CMDBUFFER_CURRENT_TYPE == CMDBUFFER_CURRENT_TYPE_USB) || (CMDBUFFER_CURRENT_TYPE == CMDBUFFER_CURRENT_TYPE_USB_WITH_LINENR)))
|
|
|
SERIAL_PROTOCOLLNRPGM(MSG_OK);
|
|
|
}
|
|
|
|
|
@@ -11461,7 +11458,6 @@ void restore_print_from_ram_and_continue(float e_move)
|
|
|
|
|
|
}
|
|
|
|
|
|
- SERIAL_PROTOCOLLNRPGM(MSG_OK);
|
|
|
lcd_setstatuspgm(_T(WELCOME_MSG));
|
|
|
saved_printing_type = PRINTING_TYPE_NONE;
|
|
|
saved_printing = false;
|