gcode: Allow M105 to produce output if called from a macro

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-09-18 09:58:16 -04:00
parent 9be2250431
commit 8c69e1bcfe
1 changed files with 5 additions and 1 deletions

View File

@ -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)