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

All CRC checks fail when log level is INFO, but work at log level DEBUG #42

Closed
Beaky2000 opened this issue Mar 31, 2022 · 1 comment
Closed

Comments

@Beaky2000
Copy link

I had no problem setting up a D1-mini according to the instructions (except i inverted the signal in the configuration instead of using the transistor) and everything worked right away, so a big thanks for everything!

Except when I changed the log level to INFO instead of DEBUG, all CRC checks would fail. Rebuilt ESPHome with DEBUG and everything works again.

There is a comment in the code about restoring the newline character because it is needed by the CRC calculations. Is that because the logging removes it, but only if DEBUG logging is enabled? That would explain the behavior I am seeing...

@Beaky2000
Copy link
Author

I solved the problem by rewriting most of the code: https://github.com/Beaky2000/esphome-p1mini

Couldn't have done it without having this project to start from though!

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

No branches or pull requests

1 participant