From 32dfdc6a20fa68f9d519cd82d2aa49c2f0dfd8a3 Mon Sep 17 00:00:00 2001 From: Ray Bellis Date: Mon, 8 May 2023 13:17:51 +0100 Subject: [PATCH] use __builtin_bswap32 --- drivers/vl53l1x/vl53l1x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vl53l1x/vl53l1x.cpp b/drivers/vl53l1x/vl53l1x.cpp index 3eb2812a..a60039f7 100644 --- a/drivers/vl53l1x/vl53l1x.cpp +++ b/drivers/vl53l1x/vl53l1x.cpp @@ -217,7 +217,7 @@ namespace pimoroni { i2c->read_blocking(address, (uint8_t *)&value, 4, false); // TODO do we need to bswap this return value? - return __bswap32(value); + return __builtin_bswap32(value); } // set distance mode to Short, Medium, or Long