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)
|
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
|
||||||
|
|
Loading…
Reference in New Issue