Fixed scale

This commit is contained in:
Maximilian Giller 2024-05-06 23:22:13 +02:00
parent 139f2f6427
commit 2eaa5fd14e

View file

@ -84,8 +84,9 @@ def check_for_change():
global show_scale_countdown global show_scale_countdown
global empty_weight global empty_weight
latest = local_history[-1] latest = local_history[-1]
if show_scale_countdown > 0 and show_scale_countdown % 3 == 0: if show_scale_countdown > 0:
show_scale(latest["total"] - empty_weight) if show_scale_countdown % 3 == 0:
show_scale(latest["total"] - empty_weight)
show_scale_countdown -= 1 show_scale_countdown -= 1
elif show_scale_countdown == 0: elif show_scale_countdown == 0:
show_scale_countdown -= 1 show_scale_countdown -= 1