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 ReachTargetVoltage handling for too small resistance #2290

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

t-b
Copy link
Collaborator

@t-b t-b commented Oct 25, 2024

We used to always use 100pA if the resistance is tool small, but the code obviously only wanted to do that only on the first sweep. Fix that.

@t-b t-b force-pushed the bugfix/2290-reach-target-voltage branch 2 times, most recently from a46d914 to 25b0267 Compare November 18, 2024 13:36
We don't return voltages for all hardware types, so the current name is
confusing.

So let's rename it.
Missed in 85d6c5b (ReachTargetVoltage: Convert to V3 analysis function, 2020-11-20).
We want to only act specially on the very first sweep. But as we reset the
index, we will land in this branch on every sweep if the resistance is too
small.

Let's prefer comparing to the number of acquired sweeps instead.
@t-b t-b force-pushed the bugfix/2290-reach-target-voltage branch from 25b0267 to dbc993d Compare November 19, 2024 10:59
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.

2 participants