Skip to content
Snippets Groups Projects
Commit 5be7debe authored by Daniel Friesel's avatar Daniel Friesel
Browse files

fix(card10-nickname): Use corect X/Y positions with filled=False

parent 11e51c13
No related branches found
No related tags found
No related merge requests found
Pipeline #3372 passed
...@@ -106,9 +106,9 @@ def render_battery(disp, bat): ...@@ -106,9 +106,9 @@ def render_battery(disp, bat):
if v > 4.0: if v > 4.0:
disp.rect(140, 2, 155, 9, filled=True, col=c) disp.rect(140, 2, 155, 9, filled=True, col=c)
else: else:
disp.rect(140, 2, 155, 9, filled=False, col=c) disp.rect(140, 2, 154, 8, filled=False, col=c)
if v > 3.5: if v > 3.5:
disp.rect(141, 3, 142 + int((v - 3.5) * 24), 9, filled=True, col=c) disp.rect(141, 3, 142 + int((v - 3.5) * 24), 8, filled=True, col=c)
disp.rect(155, 4, 157, 7, filled=True, col=c) disp.rect(155, 4, 157, 7, filled=True, col=c)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment