Signal SD completion later (#21840)

This commit is contained in:
Scott Lahteine authored and Scott Lahteine committed 2021-05-15 15:05:53 -05:00
1 parent 83309c1ac8
commit c5c8ef436c
23 files changed
+133 -116

No files matched your search

+2 -1
View File
@@ -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()) {