From 027a17c1f0604db3038581e927b28032a38a96eb Mon Sep 17 00:00:00 2001 From: Edwin Eefting Date: Fri, 4 Oct 2024 12:18:16 +0200 Subject: [PATCH] fix --- src/feeder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/feeder.py b/src/feeder.py index 6513be8..2c880cf 100644 --- a/src/feeder.py +++ b/src/feeder.py @@ -134,9 +134,9 @@ async def feed_and_wait(self): attempts = attempts + 1 # too many attempts. keep retrying every 60s so the user might notice - if attempts > self.retry_max: + if attempts >= self.retry_max: self.__log(Status.ERROR, "Refill!", f"PLEASE REFILL AND TOUCH SCALE") - await self.wait_for_food(10) + await self.wait_for_food(60) self.__log(Status.OK, "Ready", f"Ready: {self.__food_scale.last_stable_weight:0.2f}g") self.feeding = False