* fix M220 command, #35
This commit is contained in:
jneilliii
2024-07-31 00:01:44 -04:00
parent fda4b86cbc
commit 01c6cacf15
2 changed files with 2 additions and 2 deletions

View File

@ -440,7 +440,7 @@ class BambuVirtualPrinter:
def _set_feedrate_percent(self, data: str) -> bool:
if self.bambu_client.connected:
gcode_command = commands.SEND_GCODE_TEMPLATE
percent = int(data[1:])
percent = int(data.replace("M220 S", ""))
if percent is None or percent < 1 or percent > 166:
return True