Skip to content

Commit 40dda2f

Browse files
committed
fix inital progress value drawing
1 parent 61a46f6 commit 40dda2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_progressbar.py

Lines changed: 2 additions & 1 deletion
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)