commit | ead1cfb1aaadbf8c137c9af8ea839828c7b2dfa3 | [log] [tgz] |
---|---|---|
author | Derek Valleroy <derekvalleroy@fb.com> | Tue Apr 08 13:39:12 2025 -0700 |
committer | Benjamin Cabé <kartben@gmail.com> | Fri Apr 11 06:34:24 2025 +0200 |
tree | ec21a723671f7008797b872820b7d4481d7f2946 | |
parent | f3ddb06028a10aa0e0136c02454a90c2c7ec0e47 [diff] |
drivers: sensors: lsm6dsv16x: Fix bug in decoder The lsm6dsv16x driver is using an incorrect value for the index into the acceleration range. This results in using the wrong range. The issue was found to be a bug in a MACRO in lsm6dsv16x_decoder.h that was used to find the index in the acceleration range. The MACRO was improperly counting zeros from the leading edge, instead of the trailing edge. Signed-off-by: Derek Valleroy <derekvalleroy@fb.com>