Fixed exception on start up
This commit is contained in:
parent
cf4894e0ba
commit
4fb7c8b461
1 changed files with 3 additions and 0 deletions
|
@ -81,6 +81,9 @@ def check_for_change():
|
|||
logging.info(f"Capacity reached")
|
||||
return
|
||||
|
||||
if len(local_history) < 2:
|
||||
return
|
||||
|
||||
global show_scale_countdown
|
||||
global empty_weight
|
||||
latest = local_history[-1]
|
||||
|
|
Loading…
Reference in a new issue