Skip to content

Commit

Permalink
small fix (dynamic image size)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfri3d committed Jun 10, 2019
1 parent 76b2548 commit 100242b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/inky_alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def inky_update():
if data['light'] < 10:
icon = _load_image(MOON_PATH, dy - gap(0.1))
else:
sun_size = dy - max([gap(0.1), int((math.log(MAX_LUX) - math.log(data['light'])) * 6)])
sun_size = max([gap(0.1), dy - int((math.log(MAX_LUX) - math.log(data['light'])) * 6)])
icon = _load_image(SUN_PATH, sun_size)
dy_sun = dy // 2 - icon.size[1] // 2

Expand Down

0 comments on commit 100242b

Please sign in to comment.