heater: Use printer.command_error() instead of internal heater.error()
Use the more standard command_error to report invalid temperature requests. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -418,10 +418,7 @@ class GCodeParser:
|
||||
self.respond_error("Heater not configured")
|
||||
return
|
||||
print_time = self.toolhead.get_last_move_time()
|
||||
try:
|
||||
heater.set_temp(print_time, temp)
|
||||
except heater.error as e:
|
||||
raise self.error(str(e))
|
||||
heater.set_temp(print_time, temp)
|
||||
if wait and temp:
|
||||
self.bg_temp(heater)
|
||||
# G-Code special command handlers
|
||||
|
Reference in New Issue
Block a user