Skip to content

Commit

Permalink
fix final stop
Browse files Browse the repository at this point in the history
  • Loading branch information
8cH9azbsFifZ committed Aug 29, 2023
1 parent ae9e437 commit 27c3e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rollershutter.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _calc_current_percentage (self):
self._percentage += moved_percentage
if self._percentage > self._target_percentage:
self._percentage = self._target_percentage
if self._moving_close and not self._target_percentage == 100.0:
if self._moving_close and self._target_percentage < 100.0:
self.Stop()
else:
self._moving_close = False
Expand Down

0 comments on commit 27c3e57

Please sign in to comment.