We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
The mode seems to be locked to HR because of the if statement in setMode():
if (mode > LIS2DH12_HR_12bit) mode = LIS2DH12_HR_12bit; //Default to 12 bit
see the enum:
typedef enum { LIS2DH12_HR_12bit = 0, LIS2DH12_NM_10bit = 1, LIS2DH12_LP_8bit = 2, } lis2dh12_op_md_t;
if (mode > LIS2DH12_LP_8bit) mode = LIS2DH12_HR_12bit; //Default to 12 bit
The text was updated successfully, but these errors were encountered:
Nice find! Thanks for reporting. Indeed. Feel like fixing it with a PR or do you need me to?
Sorry, something went wrong.
No worries, I will issue a PR later today
Successfully merging a pull request may close this issue.
Subject of the issue
The mode seems to be locked to HR because of the if statement in setMode():
see the enum:
Proposed fix:
The text was updated successfully, but these errors were encountered: