Skip to content

Add method to disable gas heater #64

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

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

graeme-winter
Copy link
Contributor

Setting either of temperature or heat time to zero will disable

Fixes #63

Setting either of temperature or heat time to zero will disable

Fixes adafruit#63
@tekktrik
Copy link
Member

Is this ready for review?

@graeme-winter graeme-winter marked this pull request as ready for review June 23, 2023 15:23
@graeme-winter
Copy link
Contributor Author

I'll welcome some review comments, not had a chance to polish though

@tekktrik tekktrik requested a review from a team June 23, 2023 15:28
@caternuson
Copy link
Contributor

I'd suggest using None to disable instead of 0. That'd be similar to what is done in the Motor library for disabling servo outputs:
adafruit/Adafruit_CircuitPython_Motor#27

Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

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

I added a commit to tweak this to use None instead of 0.

The change looks good to me.

Thank you @graeme-winter

@FoamyGuy FoamyGuy merged commit 54ba2d4 into adafruit:main Sep 11, 2023
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Sep 12, 2023
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.

Method to disable heater please
4 participants