lsm6ds3 library working on mbed-os 5
Diff: LSM6DS3.cpp
- Revision:
- 3:69c5c66c3f2f
- Parent:
- 2:ed14e6196255
--- a/LSM6DS3.cpp Tue Jun 21 20:51:25 2016 +0000 +++ b/LSM6DS3.cpp Fri Jan 10 11:25:40 2020 +0000 @@ -55,7 +55,7 @@ { char cmd[4] = { CTRL2_G, - gScale | G_ODR_104, + (const char)(gScale | G_ODR_104), 0, // Default data out and int out 0 // Default power mode and high pass settings }; @@ -69,7 +69,7 @@ char cmd[4] = { CTRL1_XL, 0x38, // Enable all axis and don't decimate data in out Registers - (A_ODR_104 << 5) | (aScale << 3) | (A_BW_AUTO_SCALE), // 119 Hz ODR, set scale, and auto BW + (const char)((A_ODR_104 << 5) | (aScale << 3) | (A_BW_AUTO_SCALE)), // 119 Hz ODR, set scale, and auto BW 0 // Default resolution mode and filtering settings };