Skip to content

getSensorVariant не работает. #51

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

Open
SoftFelix72 opened this issue May 6, 2025 · 0 comments
Open

getSensorVariant не работает. #51

SoftFelix72 opened this issue May 6, 2025 · 0 comments

Comments

@SoftFelix72
Copy link

getSensorVariant не работает, всегда обнаружен SCD40.

SensirionI2cScd4x.cpp line 174.

uint16_t variant = (uint16_t)(rawSensorVariant & 4);

Надо проверять bit 12 (0x1000), а проверяется bit2 (& 4, 0x0004)

variant всегда равен 0.

Далее проверку тоже надо изменить.

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