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

Issue #26: Follow-up to size delay amount within uint8_t. #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

quicksketch
Copy link
Contributor

@quicksketch quicksketch commented Jan 12, 2025

Fixes a regression issue caused by #27

Related to #26.

{
calibration = { 0 };
}
else
{
calibration = cal;
}

uint8_t IMUWhoAmI = checkReady(IMUAddress, 500);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem this is fixing is that 500 is outside the bounds of uint8_t. When compiling, I get the warning that this is being implicitly cast to 254 (the max value of uint8_t).

The same code in the F_LSM6DS3.cpp file only waits 100ms, and that should be fine here too.

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.

1 participant