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