diff --git a/src/endpoints/handlers/bett.py b/src/endpoints/handlers/bett.py index 16a3328..80cec89 100644 --- a/src/endpoints/handlers/bett.py +++ b/src/endpoints/handlers/bett.py @@ -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]