This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MH-Z19 sensor: disable auto-calibration and some odd fixes #592
base: dev
Are you sure you want to change the base?
MH-Z19 sensor: disable auto-calibration and some odd fixes #592
Changes from all commits
a416375
e834bf1
df2f4da
31bae8c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole block sounds a bit more like it should go in the
setup()
function. We should probably move it there.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tried it first but then node hangs for good (had to restart mcu several times before I was able to flash it again) on boot. With UART0 occupied by sensor without hardware to read log from UART1 output, I don't have means to debug it.
I'd still like to move it to setup, but don't know how to fix boot issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhm the
flush
command should flush the RX buffer (naming is bad, but copied from arduino core). If it does not do so that would be a bug.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's make on it as well,
but got arduino/esp only a couple days ago so I'm not sure where to look for respective code
and this workaround fixed non working sensor for me.
If it's within this git repo and you can point out to related code, I'll give it a try.