-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Stop Print" doesn't purge commands #3545
Comments
Not sure if this is the same problem - if I stop a print couple of times, eventually the new print offsets about 3cm towards the X0. (Y & Z are OK) |
Hmm. It's possible for the |
As this code in ultralcd.ccp says: static void lcd_sdcard_stop() {
quickStop();
card.sdprinting = false;
card.closefile();
autotempShutdown();
cancel_heatup = true;
lcd_setstatus(MSG_PRINT_ABORTED, true);
} it should stop heating and/or switch heaters off when actually printing |
Indeed. autotempShutdown(); //sets only the current exruder to 0. (#if AUTOTEMP)
cancel_heatup = true; // stops the _waiting_ for M109/M190 but does not set the target temperatures. If we want to stop all heaters it needs a |
I don't know. But i think we never had a function/method to clean the command buffer.
I'd suggest:
A bit less brutal, but slow:
Eventually it also needs to clear the |
If we speak about a circular buffer then the way to do it is to set |
@jbrazio |
@Blue-Marlin thanks for the heads up, then building upon your initial code we could have something like: cmd_queue_index_r = cmd_queue_index_w;
commands_in_queue = 0; |
#3939 adds clearing of the command buffer for |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When "Stop Print" is used to stop printing from SD, if the machine is waiting inside
M109
orM104
apparently the next command in the command queue (or from the SD card) is executed. In my case, this sets the extruder temp to 195 (and waits) because the next command isM109 S195
.When stopping a print, anything left hanging around in the command queue should be purged and ignored, and no more commands should be read from SD.
The text was updated successfully, but these errors were encountered: