From 7e649c83dc0fcbb7d90149d847ce6a54dfcfd368 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Thu, 9 Jul 2015 14:02:47 +0200 Subject: [PATCH] SD card: remove sd_read_char() also from the simulator. This is related to the commit "SD card: move parsing closer to the metal." --- simulator/sd_sim.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/simulator/sd_sim.c b/simulator/sd_sim.c index 7d23f83..a5084aa 100644 --- a/simulator/sd_sim.c +++ b/simulator/sd_sim.c @@ -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 */