-
Notifications
You must be signed in to change notification settings - Fork 15
Changed input current limit comparison values from double to float and fixed 900mA setting #34
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
base: master
Are you sure you want to change the base?
Conversation
…ixed 900 mA comparison.
Rob Singleton seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Memory usage change @ ea5bdda
Click for full report table
Click for full report CSV
|
Hi @rsingletonDS , |
Martino, thanks for following up. Without the float specification I still won't be able to set 900 mA, so let me try to convince you. I instrumented the function as follows:
This is all I get. It does not set the current to 900 mA as I require.
My first fix was to change the constants to 1 mV lower:
This fixed it:
But during internal code review, one of my co-workers pointed out that the constant was probably a double while
That also fixed it:
Since that was the better solution, that's what I submitted in the pull request. Please reconsider this change. Regards, |
@rsingletonDS has now created a dedicated PR for the |
There are two issues being addressed here.