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.
1 parent 5f096b5 commit 90d4343Copy full SHA for 90d4343
src/BoschSensorClass.h
@@ -79,7 +79,7 @@ class ContinuousMode {
79
if (ret != 0) {
80
return 0;
81
}
82
- _available = min(status, sizeof(fifoData)) / (6 + 6); // 6 bytes per accel sample
+ _available = min((size_t)status, sizeof(fifoData)) / (6 + 6); // 6 bytes per accel sample
83
_availableG = _available;
84
_availableA = _available;
85
ret = bmi2_extract_accel(accel_data, &_available, &fifoFrame, bmi2);
0 commit comments