Ejemplo n.º 1
0
 def cancel(self):
     self._logger.warn("Cancelling build %s", "by the printer" if self._bot_cancelled else "by OctoPrint")
     if not self._bot_cancelled:
         if self._settings.get_boolean(["extended_stop_instead_of_abort"]):
             # make sure if you use this you have your own "gcode on cancel"
             # that turns off motors and heaters
             self._logger.debug("stop")
             gpx.stop()
         else:
             self._logger.debug("abort")
             gpx.abort()
     self._bot_cancelled = False
Ejemplo n.º 2
0
 def cancel(self):
     self._logger.warn(
         "Cancelling build %s",
         "by the printer" if self._bot_cancelled else "by OctoPrint")
     if not self._bot_cancelled:
         if self._settings.get_boolean(['extended_stop_instead_of_abort']):
             # make sure if you use this you have your own "gcode on cancel"
             # that turns off motors and heaters
             self._logger.debug("stop")
             gpx.stop()
         else:
             self._logger.debug("abort")
             gpx.abort()
     self._bot_cancelled = False