-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix to avoid looping indefinitely when moving to finalValue when equal to current value #9776
Merged
andy31415
merged 4 commits into
project-chip:master
from
mkardous-silabs:fix/max_transition_time
Sep 17, 2021
Merged
fix to avoid looping indefinitely when moving to finalValue when equal to current value #9776
andy31415
merged 4 commits into
project-chip:master
from
mkardous-silabs:fix/max_transition_time
Sep 17, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkardous-silabs
changed the title
fix to avoid looping indefinitely when requesting to move to finalVal…
fix to avoid looping indefinitely when moving to finalValue which is equal to current
Sep 17, 2021
mkardous-silabs
changed the title
fix to avoid looping indefinitely when moving to finalValue which is equal to current
fix to avoid looping indefinitely when moving to finalValue when equal to current value
Sep 17, 2021
…ue when equal to currentValue
mkardous-silabs
force-pushed
the
fix/max_transition_time
branch
from
September 17, 2021 02:09
f240602
to
dc08bd7
Compare
pullapprove
bot
requested review from
anush-apple,
austinh0,
balducci-apple,
bzbarsky-apple,
carol-apple,
cecille,
chrisdecenzo,
Damian-Nordic,
emargolis,
erjiaqing,
franck-apple,
hawk248,
jelderton,
jepenven-silabs,
jmartinez-silabs,
LuDuda,
mlepage-google,
mrjerryjohns,
msandstedt,
mspang,
pan-apple,
sagar-apple,
saurabhst and
shana-apple
September 17, 2021 02:10
pullapprove
bot
requested review from
turon,
vivien-apple,
woody-apple,
yufengwangca and
yunhanw-google
September 17, 2021 02:10
Checks if transitionTime is equal 0 after calculations
jmartinez-silabs
approved these changes
Sep 17, 2021
Damian-Nordic
approved these changes
Sep 17, 2021
andy31415
approved these changes
Sep 17, 2021
mleisner
pushed a commit
to mleisner/connectedhomeip
that referenced
this pull request
Sep 20, 2021
…l to current value (project-chip#9776) * fix to avoid looping indefinitely when requesting to move to finalValue when equal to currentValue * Moved fix to cover more cases Checks if transitionTime is equal 0 after calculations * restyle * changed check to remove max function
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
When calculating transitionTime from current value and final value, if current and final value are equal, transitionTime ends up being equal to 0 and causes the application to indefinitely try to get to the final value when current value is equal to the final value.
Change overview
Added a check when calculating transitionTime that if current value and final value are the same, sets the transitionTime to 1. This forces the normal execution to happen for one iteration.
Testing