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

AMI430: Fix switch heater parameters that return 0 or 1 as a string #3650

Merged
merged 7 commits into from
Dec 20, 2021

Conversation

peendebak
Copy link
Contributor

The parameters from the AMI430 switch heater return a string such as 0\n. This was parsed by stripping and then casting to bool. But bool('0') is True, which is not what the parameter should return.

@astafan8 astafan8 added this to the 0.31.0 milestone Dec 8, 2021
@astafan8 astafan8 added the driver label Dec 8, 2021
Co-authored-by: Mikhail Astafev <astafan8@gmail.com>
@codecov
Copy link

codecov bot commented Dec 17, 2021

Codecov Report

Merging #3650 (21ecc11) into master (5b2aec2) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master    #3650      +/-   ##
==========================================
- Coverage   65.73%   65.72%   -0.01%     
==========================================
  Files         226      226              
  Lines       30547    30547              
==========================================
- Hits        20080    20078       -2     
- Misses      10467    10469       +2     

@jenshnielsen
Copy link
Collaborator

@peendebak I pushed a basic test and added support for enabling disabling the switch heater in the yaml simulator. I think this should be ready to merge now?

@astafan8 astafan8 changed the title [WIP] Fix for ami430 parameters that return 0 or 1 as a string AMI430: Fix switch heater parameters that return 0 or 1 as a string Dec 20, 2021
Copy link
Contributor

@astafan8 astafan8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors merge

Copy link
Contributor

@astafan8 astafan8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors merge

@bors
Copy link
Contributor

bors bot commented Dec 20, 2021

🕐 Waiting for PR status (Github check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set.

1 similar comment
@bors
Copy link
Contributor

bors bot commented Dec 20, 2021

🕐 Waiting for PR status (Github check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set.

@astafan8
Copy link
Contributor

bors merge

@bors bors bot merged commit 681dd67 into microsoft:master Dec 20, 2021
@peendebak peendebak deleted the fix/ami430 branch December 22, 2021 09:32
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.

None yet

3 participants