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

fix: use linear search to determine the highest possible power reduction #4494

Merged
merged 1 commit into from
Apr 21, 2022

Conversation

AlCalzone
Copy link
Member

Using a binary search reduces the test time for nodes with a good link, but some get stuck in a never-ending test if the powerlevel is too low, and fail all subsequent tests. Using a linear search from normal power to -9 dBm, we should be able to avoid this situation.

fixes: #4471

@AlCalzone AlCalzone merged commit 1ed4bbc into master Apr 21, 2022
@AlCalzone AlCalzone deleted the fix-powerlevel-test branch April 21, 2022 13:34
AlCalzone added a commit that referenced this pull request Apr 22, 2022
### Bugfixes
* Route health checks now approach the minimum power level linearly from the normal power to avoid nodes with a suboptimal implementation getting stuck in test mode and causing a wrong test result (#4494)
* For `Door Lock CC` V3 and below, the lock/bolt/latch sensors are now created again, since support cannot be tested in these versions (#4490)
* The initial connection to a TCP socket is now retried if the connection cannot be established immediately (#4492)

### Changes under the hood
* Expose "safe" entrypoint in each package which can be used from non-Node.js contexts (#4469)
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.

Powerlevel test must start at highest powerlevel to avoid getting stuck in the check for lower ones
1 participant