Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

g_iAwayCounter clearing restrictions when nothing has changed #1110

Merged
merged 4 commits into from
Oct 19, 2024

Conversation

NikkiLacrima
Copy link
Contributor

@NikkiLacrima NikkiLacrima commented Oct 10, 2024

When leasher is away, realleash keeps spamming the collar with messages every 10 seconds when nothing has changed.

Technically when leasher is away we call ApplyRestrictions() and set g_iAwayCounter to -1. We dont need to call ApplyRestrictions() again until leasher is in range, and g_iAwayCounter set larger than 0.

Change should not be noticalbe to wearer, just test that leasher detection works correctly.

…ng has changed

When leasher is away, realleash keeps spamming the collar with messages every 10 seconds when nothing has changed.

Change should not be noticalbe to wearer, just test that leasher detection works correctly.
@NikkiLacrima NikkiLacrima deleted the NikkiLacrima-patch-2 branch October 11, 2024 19:13
@NikkiLacrima NikkiLacrima restored the NikkiLacrima-patch-2 branch October 11, 2024 19:25
@NikkiLacrima NikkiLacrima reopened this Oct 11, 2024
@SilkieSabra SilkieSabra merged commit 9d6467b into OpenCollarTeam:main Oct 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants