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

aht20: Fixed bug in driver read command #735

Merged
merged 1 commit into from
Jan 18, 2025

Conversation

crazyorc
Copy link

@crazyorc crazyorc commented Jan 13, 2025

The driver was checking reserved bit 2 (0x4) for calibration status instead of the calibration bit. Use the package constants (which are correct) instead of magic numbers.

From the datasheet the status bits are defined this way:
Screenshot 2025-01-12 at 6 58 14 PM

@crazyorc crazyorc changed the base branch from release to dev January 13, 2025 02:01
@deadprogram
Copy link
Member

Use the package constants (which are correct) instead of magic numbers.
💯

Now merging, thanks @crazyorc

@deadprogram deadprogram merged commit 00578a3 into tinygo-org:dev Jan 18, 2025
1 check passed
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.

2 participants