Skip to content

Commit

Permalink
Fix pre-flash system commands
Browse files Browse the repository at this point in the history
  • Loading branch information
benlye committed Mar 22, 2021
1 parent 831ecca commit 8850688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion octoprint_firmwareupdater/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8850688

Please sign in to comment.