mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2026-01-18 05:45:33 -07:00
Signal SD completion later (#21840)
This commit is contained in:
parent
83309c1ac8
commit
c5c8ef436c
23 changed files with 133 additions and 116 deletions
|
|
@ -550,7 +550,8 @@ void GCodeQueue::get_serial_commands() {
|
|||
inline void GCodeQueue::get_sdcard_commands() {
|
||||
static uint8_t sd_input_state = PS_NORMAL;
|
||||
|
||||
if (!IS_SD_PRINTING()) return;
|
||||
// Get commands if there are more in the file
|
||||
if (!IS_SD_FETCHING()) return;
|
||||
|
||||
int sd_count = 0;
|
||||
while (!ring_buffer.full() && !card.eof()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue