diff options
Diffstat (limited to 'driver')
-rw-r--r-- | driver/accel_bma4xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/accel_bma4xx.c b/driver/accel_bma4xx.c index e9502c20b4..9b383edf80 100644 --- a/driver/accel_bma4xx.c +++ b/driver/accel_bma4xx.c @@ -339,7 +339,7 @@ static int get_offset(const struct motion_sensor_t *s, int16_t *offset, } if (val > 0x7f) - val -= -256; + val -= 256; v[i] = round_divide((int64_t)val * BMA4_OFFSET_ACC_MULTI_MG, BMA4_OFFSET_ACC_DIV_MG); |