aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/kinematics/extruder.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-09-04 11:41:57 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-09-04 11:41:57 -0400
commitf6dd97b78443548c236038ce50a69c24866e156d (patch)
treed6903319195a312db946e610372727b6fcab2149 /klippy/kinematics/extruder.py
parent1f3a160f47175c44722a3ce1e58e90c359b99c99 (diff)
downloadkutter-f6dd97b78443548c236038ce50a69c24866e156d.tar.gz
kutter-f6dd97b78443548c236038ce50a69c24866e156d.tar.xz
kutter-f6dd97b78443548c236038ce50a69c24866e156d.zip
homing: Remove EndstopError
There's no reason to distinguish between an EndstopError and a CommandError, so just use CommandError. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/kinematics/extruder.py')
-rw-r--r--klippy/kinematics/extruder.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/klippy/kinematics/extruder.py b/klippy/kinematics/extruder.py
index 28bd59a2..302c4eed 100644
--- a/klippy/kinematics/extruder.py
+++ b/klippy/kinematics/extruder.py
@@ -107,13 +107,13 @@ class PrinterExtruder:
def check_move(self, move):
axis_r = move.axes_r[3]
if not self.heater.can_extrude:
- raise homing.EndstopError(
+ raise self.printer.command_error(
"Extrude below minimum temp\n"
"See the 'min_extrude_temp' config option for details")
if (not move.axes_d[0] and not move.axes_d[1]) or axis_r < 0.:
# Extrude only move (or retraction move) - limit accel and velocity
if abs(move.axes_d[3]) > self.max_e_dist:
- raise homing.EndstopError(
+ raise self.printer.command_error(
"Extrude only move too long (%.3fmm vs %.3fmm)\n"
"See the 'max_extrude_only_distance' config"
" option for details" % (move.axes_d[3], self.max_e_dist))
@@ -127,7 +127,7 @@ class PrinterExtruder:
area = axis_r * self.filament_area
logging.debug("Overextrude: %s vs %s (area=%.3f dist=%.3f)",
axis_r, self.max_extrude_ratio, area, move.move_d)
- raise homing.EndstopError(
+ raise self.printer.command_error(
"Move exceeds maximum extrusion (%.3fmm^2 vs %.3fmm^2)\n"
"See the 'max_extrude_cross_section' config option for details"
% (area, self.max_extrude_ratio * self.filament_area))