Skip to content

Commit 7f186fb

Browse files
committed
Add M290 to allow list, and log gcode response
1 parent 399e81d commit 7f186fb

File tree

3 files changed

+949
-946
lines changed

3 files changed

+949
-946
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "simplyprint-duet3d"
3-
version = "1.3.7"
3+
version = "1.3.8"
44
description = "SimplyPrint integration with any Duet3D powered RepRapFirmware printers "
55
readme = "README.rst"
66
license-files = ["LICENSE"]

simplyprint_duet3d/virtual_client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ async def deferred_gcode(self, event: GcodeDemandData) -> None:
301301
'M221',
302302
'M701',
303303
'M702',
304+
'M290',
304305
'G1',
305306
'G28',
306307
'G29',
@@ -325,6 +326,8 @@ async def deferred_gcode(self, event: GcodeDemandData) -> None:
325326
response.append('{!s} G-Code blocked'.format(item.code))
326327
# TODO: notify sentry
327328

329+
self.logger.debug(f"Gcode response: {'\n [gcode] '.join(response)}")
330+
328331
async def _perform_self_upgrade(self) -> None:
329332
"""Perform self-upgrade and restart the API."""
330333
self.logger.info('Performing self upgrade')

0 commit comments

Comments
 (0)