SD card: remove sd_read_char() also from the simulator.
This is related to the commit "SD card: move parsing closer to the metal."
This commit is contained in:
parent
8a11a76063
commit
7e649c83dc
|
|
@ -98,21 +98,4 @@ uint8_t sd_read_gcode_line(void) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
/** Read a character from a file.
|
||||
|
||||
\return The character read, or zero if there is no such character (e.g. EOF).
|
||||
*/
|
||||
uint8_t sd_read_char(void) {
|
||||
if (!f) {
|
||||
sim_info("E: file not open");
|
||||
return 1;
|
||||
}
|
||||
char ch = fgetc(f);
|
||||
if (ch == EOF) {
|
||||
sim_info("SD card: reached EOF");
|
||||
return 0;
|
||||
}
|
||||
return (uint8_t) ch;
|
||||
}
|
||||
|
||||
#endif /* SD */
|
||||
|
|
|
|||
Loading…
Reference in New Issue