1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/bmx280
Marian Buschsieweke f08df428fa
drivers/bmx280: Fix incorrect endian conversion
The binary shift operators in C are defined via the change of their values, not
the change of the memory representation of them. When reading a value from
little endian out of buffer `buf`, `((uint16_t)buf[1] << 8) | buf[0]` will
thus work regardless of the byte order of the host system.
2019-11-22 20:58:31 +01:00
..
include drivers/bmx280: significant driver rework 2019-11-22 14:04:37 +01:00
bmx280_saul.c drivers/bmx280: significant driver rework 2019-11-22 14:04:37 +01:00
bmx280.c drivers/bmx280: Fix incorrect endian conversion 2019-11-22 20:58:31 +01:00
Makefile drivers/bmx280: factorize bme280 and bmp280 implementation 2017-06-02 14:54:17 +02:00