ソースを参照

Fix card_eof error

Scott Lahteine 4年前
コミット
9040394e8e
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      Marlin/src/gcode/queue.cpp

+ 1
- 1
Marlin/src/gcode/queue.cpp ファイルの表示

@@ -526,7 +526,7 @@ void GCodeQueue::get_serial_commands() {
526 526
     while (length < BUFSIZE && !card_eof) {
527 527
       const int16_t n = card.get();
528 528
       card_eof = card.eof();
529
-      if (n < 0) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; }
529
+      if (n < 0 && !card_eof) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; }
530 530
       const char sd_char = (char)n;
531 531
       if (sd_char == '\n' || sd_char == '\r' || card_eof) {
532 532
 

読み込み中…
キャンセル
保存