From 8c69e1bcfe2aa7f17fb919bf0131ee81d85c3976 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 18 Sep 2019 09:58:16 -0400 Subject: [PATCH] gcode: Allow M105 to produce output if called from a macro Signed-off-by: Kevin O'Connor --- klippy/gcode.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/klippy/gcode.py b/klippy/gcode.py index 6c767c49..ca13279d 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -650,7 +650,11 @@ class GCodeParser: cmd_M105_when_not_ready = True def cmd_M105(self, params): # Get Extruder Temperature - self.ack(self._get_temp(self.reactor.monotonic())) + msg = self._get_temp(self.reactor.monotonic()) + if self.need_ack: + self.ack(msg) + else: + self.respond(msg) def cmd_M104(self, params): # Set Extruder Temperature self._set_temp(params)