Skip to content

Commit 32dfdc6

Browse files
committed
use __builtin_bswap32
1 parent 67df015 commit 32dfdc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vl53l1x/vl53l1x.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ namespace pimoroni {
217217
i2c->read_blocking(address, (uint8_t *)&value, 4, false);
218218

219219
// TODO do we need to bswap this return value?
220-
return __bswap32(value);
220+
return __builtin_bswap32(value);
221221
}
222222

223223
// set distance mode to Short, Medium, or Long

0 commit comments

Comments
 (0)