summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--driver/als_si114x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/als_si114x.c b/driver/als_si114x.c
index 944712f655..fb927e9367 100644
--- a/driver/als_si114x.c
+++ b/driver/als_si114x.c
@@ -128,7 +128,7 @@ static int si114x_read_results(struct motion_sensor_t *s, int nb)
for (i = nb; i < 3; i++)
vector.data[i] = 0;
vector.sensor_num = s - motion_sensors;
- motion_sense_fifo_add_unit(&vector, s, 1);
+ motion_sense_fifo_add_unit(&vector, s, nb);
#else
/* We need to copy raw_xyz into xyz with mutex */
#endif