Skip to main content
suads
Associate III
October 2, 2020
Solved

lsm6dsr driver fix?

  • October 2, 2020
  • 2 replies
  • 1631 views

Hello,

One of my previous post the driver for the sensor lsm6dsox hub mode 2 configuration, I have written that the function lsm6dsox_sh_read_data_raw_get was not working correctly. I managed to fix it.Now I see someone fixit

0693W000004IVG2QAO.png

Now I'm using lsm6dsr and the same function lsm6dsr_sh_read_data_raw_get needs to add the length.

And also this needs to be changed

typedef enum {

LSM6DSR_EXT_ON_INT2_PIN = 0,

LSM6DSR_XL_GY_DRDY = 1,

} lsm6dsr_start_config_t;

to

typedef enum {

LSM6DSR_XL_GY_DRDY = 0,

LSM6DSR_EXT_ON_INT2_PIN = 1,

} lsm6dsr_start_config_t;

Please can someone check and confirm.

This topic has been closed for replies.
Best answer by Eleon BORLINI

Hi @suads​ ,

back to you again. Our experts suggestion is to directly open an issue or a pull request on the LSM6DSR or LSM6DSOX Github folder: every week all the open points will be validated and typically on Friday they'll be closed.

But ok, for this time no problem, the bug has been reported.

-Eleon

2 replies

Eleon BORLINI
ST Employee
October 2, 2020

Hi @suads​ ,

I think you are right, but let me please submit it internally to our experts.

Thank you for your bug reporting, also for the last time I didn't do the follow-up.

-Eleon

Eleon BORLINI
Eleon BORLINIBest answer
ST Employee
October 2, 2020

Hi @suads​ ,

back to you again. Our experts suggestion is to directly open an issue or a pull request on the LSM6DSR or LSM6DSOX Github folder: every week all the open points will be validated and typically on Friday they'll be closed.

But ok, for this time no problem, the bug has been reported.

-Eleon