diff --git a/octoprint_firmwareupdater/__init__.py b/octoprint_firmwareupdater/__init__.py index 66a1109..963b3ba 100644 --- a/octoprint_firmwareupdater/__init__.py +++ b/octoprint_firmwareupdater/__init__.py @@ -206,7 +206,7 @@ def _start_flash_process(self, method, hex_file, printer_port): def _flash_worker(self, method, firmware, printer_port): # Run pre-flash system command preflash_command = self.get_profile_setting("preflash_commandline") - if preflash_command is not None and self.get_profile_setting_boolean("enable_postflash_gcode"): + if preflash_command is not None and self.get_profile_setting_boolean("enable_preflash_commandline"): self._logger.info("Executing pre-flash commandline '{}'".format(preflash_command)) try: r = os.system(preflash_command) diff --git a/setup.py b/setup.py index 71e5369..9266be2 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ plugin_name = "OctoPrint-FirmwareUpdater" # The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module -plugin_version = "1.10.10b0" +plugin_version = "1.10.10b1" # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin