* 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

View File

@ -14,7 +14,7 @@ plugin_package = "octoprint_bambu_printer"
plugin_name = "OctoPrint-BambuPrinter"
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "0.1.0"
plugin_version = "0.1.1"
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module