Skip to content

Commit 90d4343

Browse files
committed
esp32: fix min macro
1 parent 5f096b5 commit 90d4343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BoschSensorClass.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class ContinuousMode {
7979
if (ret != 0) {
8080
return 0;
8181
}
82-
_available = min(status, sizeof(fifoData)) / (6 + 6); // 6 bytes per accel sample
82+
_available = min((size_t)status, sizeof(fifoData)) / (6 + 6); // 6 bytes per accel sample
8383
_availableG = _available;
8484
_availableA = _available;
8585
ret = bmi2_extract_accel(accel_data, &_available, &fifoFrame, bmi2);

0 commit comments

Comments
 (0)