Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
psy0rz committed Oct 4, 2024
1 parent a71b644 commit 027a17c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/feeder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 027a17c

Please sign in to comment.