Fixed reviews
[apps/native/gear-racing-controller.git] / src / resource_accelerometer.c
index f7f476e..ea3066b 100644 (file)
@@ -156,9 +156,8 @@ static void __sensor_value_changed_cb(sensor_h sensor, sensor_event_s *event, vo
        if (accel_info.avr_val.front >= AVERAGE_COUNT)
                accel_info.avr_val.ready_to_send = 1;
 
-       if (accel_info.avr_val.front % AVERAGE_COUNT == 0) {
+       if (accel_info.avr_val.front % AVERAGE_COUNT == 0)
                accel_info.avr_val.front = 1;
-       }
 
        if (!accel_info.avr_val.ready_to_send)
                return;