Skip to content

fix(#140): increase rotation cooldown and add rotation lock - #251

Open
dennismdejong wants to merge 1 commit into
jjjonesjr33:devfrom
dennismdejong:fix/upstream-140
Open

fix(#140): increase rotation cooldown and add rotation lock#251
dennismdejong wants to merge 1 commit into
jjjonesjr33:devfrom
dennismdejong:fix/upstream-140

Conversation

@dennismdejong

Copy link
Copy Markdown

Fixes #140

Problem: Automations calling rotate_food_bowl or set_plate_position followed by set_manual_feed_now (open lid) could cause unexpected extra plate rotations. The rotation cooldown of 0.6s was too short for the device to settle between steps.

Fix:

  • Increased ROTATE_COOLDOWN from 0.6s to 2.0s to let the device settle between rotation steps
  • Added _rotating lock to prevent concurrent rotation calls (defensive, logs a warning if rotation is already in progress)
  • Added defensive check in set_manual_feed_now: warn if stop is called without a valid manualFeedId

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Polar Wet Feeder

1 participant