In LSM6DSM, wrote a specific value to control registers. But gives different values from reading the same register.
I'm using LSM6DSM sensor with the code from ST's github.I was able to read the whoamI register correctly. Then I wrote configuration(0x60) to the control registers(CTRL2_G) for gyro . When I read the same registers, it is always giving me a value of ...