kopia lustrzana https://github.com/pimoroni/pimoroni-pico
use __builtin_bswap32
rodzic
67df015bfe
commit
32dfdc6a20
|
@ -217,7 +217,7 @@ namespace pimoroni {
|
||||||
i2c->read_blocking(address, (uint8_t *)&value, 4, false);
|
i2c->read_blocking(address, (uint8_t *)&value, 4, false);
|
||||||
|
|
||||||
// TODO do we need to bswap this return value?
|
// TODO do we need to bswap this return value?
|
||||||
return __bswap32(value);
|
return __builtin_bswap32(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
// set distance mode to Short, Medium, or Long
|
// set distance mode to Short, Medium, or Long
|
||||||
|
|
Ładowanie…
Reference in New Issue