HAHA
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Dependents: b_NYP_humanoid a_NYP_humanoid_copy
Fork of LSM6DSL by
Diff: LSM6DSL_acc_gyro_driver.c
- Revision:
- 3:20ccff7dd652
- Parent:
- 0:704c89673b57
--- a/LSM6DSL_acc_gyro_driver.c Mon Oct 02 09:29:50 2017 +0200 +++ b/LSM6DSL_acc_gyro_driver.c Tue Oct 03 14:04:56 2017 +0200 @@ -2237,10 +2237,10 @@ *******************************************************************************/ mems_status_t LSM6DSL_ACC_GYRO_W_SPI_Mode(void *handle, LSM6DSL_ACC_GYRO_SIM_t newValue) { - u8_t value; - - if( !LSM6DSL_ACC_GYRO_read_reg(handle, LSM6DSL_ACC_GYRO_CTRL3_C, &value, 1)) - return MEMS_ERROR; + u8_t value=0x04; + +// if( !LSM6DSL_ACC_GYRO_read_reg(handle, LSM6DSL_ACC_GYRO_CTRL3_C, &value, 1)) +// return MEMS_ERROR; /** FIXED not possible to read in 3w as deft spi is 4w value &= ~LSM6DSL_ACC_GYRO_SIM_MASK; value |= newValue;