Skip to content

Conversation

@quicksketch
Copy link
Contributor

@quicksketch quicksketch commented Jan 12, 2025

Fixes a regression issue caused by #27

Related to #26.

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.

@LiquidCGS LiquidCGS merged commit 2b1640a into LiquidCGS:main Jan 28, 2025
1 check passed
@quicksketch quicksketch deleted the 26--followup-fix-uint8_t-size branch January 28, 2025 06:30
@quicksketch
Copy link
Contributor Author

Thank you @LiquidCGS!

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