Skip to content

Commit 247b51d

Browse files
authored
Merge pull request #13 from FoamyGuy/fix_inital_progress
fix inital progress value drawing
2 parents 61a46f6 + 40dda2f commit 247b51d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_progressbar.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ def __init__(
8383
self._width = width
8484
self._height = height
8585

86-
self._progress_val = progress
86+
self._progress_val = 0.0
8787
self.progress = self._progress_val
88+
self.progress = progress
8889

8990
# draw outline rectangle
9091
for _w in range(width):

0 commit comments

Comments
 (0)