virtual_sdcard: No need to call gcode.respond_error() on disk error

Report low-level disk errors via the log and use the normal sdcard
mechanism to report end of sdcard print to gcode users.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-04-24 14:54:13 -04:00
parent ed3e6b42c7
commit 568a0da50e
1 changed files with 0 additions and 2 deletions

View File

@ -144,7 +144,6 @@ class VirtualSD:
self.current_file.seek(self.file_position) self.current_file.seek(self.file_position)
except: except:
logging.exception("virtual_sdcard seek") logging.exception("virtual_sdcard seek")
self.gcode.respond_error("Unable to seek file")
self.work_timer = None self.work_timer = None
return self.reactor.NEVER return self.reactor.NEVER
gcode_mutex = self.gcode.get_mutex() gcode_mutex = self.gcode.get_mutex()
@ -157,7 +156,6 @@ class VirtualSD:
data = self.current_file.read(8192) data = self.current_file.read(8192)
except: except:
logging.exception("virtual_sdcard read") logging.exception("virtual_sdcard read")
self.gcode.respond_error("Error on virtual sdcard read")
break break
if not data: if not data:
# End of file # End of file