Skip to content

Commit

Permalink
Merge pull request #4092 from thinkyhead/rc_sd_error
Browse files Browse the repository at this point in the history
Output a message for SD read errors
  • Loading branch information
thinkyhead authored Jun 20, 2016
2 parents 96b8bcc + 400e13d commit 43ec241
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,10 @@ inline void get_serial_commands() {
card.printingHasFinished();
card.checkautostart(true);
}
else if (n == -1) {
SERIAL_ERROR_START;
SERIAL_ECHOLNPGM(MSG_SD_ERR_READ);
}
if (sd_char == '#') stop_buffering = true;

sd_comment_mode = false; //for new command
Expand Down
1 change: 1 addition & 0 deletions Marlin/language.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
#define MSG_SD_PRINTING_BYTE "SD printing byte "
#define MSG_SD_NOT_PRINTING "Not SD printing"
#define MSG_SD_ERR_WRITE_TO_FILE "error writing to file"
#define MSG_SD_ERR_READ "SD read error"
#define MSG_SD_CANT_ENTER_SUBDIR "Cannot enter subdir: "

#define MSG_STEPPER_TOO_HIGH "Steprate too high: "
Expand Down

0 comments on commit 43ec241

Please sign in to comment.