mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2026-01-18 05:45:33 -07:00
MKS H43 fixup (#21267)
Co-authored-by: makerbase <4164049@qq.com> Co-authored-by: MKS-Sean <56996910+MKS-Sean@users.noreply.github.com> Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
parent
a94fa7b476
commit
72cc5a49e6
17 changed files with 139 additions and 122 deletions
|
|
@ -610,6 +610,14 @@ void GCodeQueue::get_available_commands() {
|
|||
TERN_(SDSUPPORT, get_sdcard_commands());
|
||||
}
|
||||
|
||||
/**
|
||||
* Run the entire queue in-place. Blocks SD completion/abort until complete.
|
||||
*/
|
||||
void GCodeQueue::exhaust() {
|
||||
while (ring_buffer.occupied()) advance();
|
||||
planner.synchronize();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the next command in the queue, optionally log it to SD, then dispatch it
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue