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:
parent
ed3e6b42c7
commit
568a0da50e
|
@ -144,7 +144,6 @@ class VirtualSD:
|
|||
self.current_file.seek(self.file_position)
|
||||
except:
|
||||
logging.exception("virtual_sdcard seek")
|
||||
self.gcode.respond_error("Unable to seek file")
|
||||
self.work_timer = None
|
||||
return self.reactor.NEVER
|
||||
gcode_mutex = self.gcode.get_mutex()
|
||||
|
@ -157,7 +156,6 @@ class VirtualSD:
|
|||
data = self.current_file.read(8192)
|
||||
except:
|
||||
logging.exception("virtual_sdcard read")
|
||||
self.gcode.respond_error("Error on virtual sdcard read")
|
||||
break
|
||||
if not data:
|
||||
# End of file
|
||||
|
|
Loading…
Reference in New Issue