Skip to content

Commit 04c70d6

Browse files
vladislav-pejicnashif
authored andcommitted
driver: sensor: adxl367: Fix for extra 0
Fix for extra 0 in conversion of acceleration values in adxl367_accel_convert. Signed-off-by: Vladislav Pejic <[email protected]>
1 parent 19fe816 commit 04c70d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/adi/adxl367/adxl367.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ static void adxl367_accel_convert(struct sensor_value *val, int16_t value,
890890
enum adxl367_range range)
891891
#endif /*CONFIG_SENSOR_ASYNC_API*/
892892
{
893-
int64_t micro_ms2 = value * (SENSOR_G * 250 / 10000 *
893+
int64_t micro_ms2 = value * (SENSOR_G * 250 / 1000 *
894894
adxl367_scale_mul[range] / 1000);
895895

896896
val->val1 = micro_ms2 / 1000000;

0 commit comments

Comments
 (0)