Skip to content

Commit

Permalink
fixed bug in progress bar code; updated version to 1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
EricHigdon committed Mar 16, 2019
1 parent a7f6ffb commit 7cfe918
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion octoprint_rgb_status/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def on_print_progress(self, storage, path, progress):
if self.strip is not None and self._settings.get_boolean(['show_progress']):
self.kill_effect()
self._logger.info('Updating Progress LEDs: ' + str(progress))
perc = float(progress) / float(self.strip.numPixels())
perc = float(progress) / 100 * float(self.strip.numPixels())
base_color = hex_to_rgb(self._settings.get(['progress_base_color']))
progress_color = hex_to_rgb(self._settings.get(['progress_color']))
for i in range(self.strip.numPixels()):
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 = "RGB Status"

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "1.0.4"
plugin_version = "1.0.6"

# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module
Expand Down

0 comments on commit 7cfe918

Please sign in to comment.