Skip to content

Commit 053a044

Browse files
committed
samples: sensor: accel_polling: Don't drop data on FIFO watermark
Changes the accelerometer polling sample to include data with the FIFO watermark trigger instead of dropping it. Signed-off-by: Maureen Helm <[email protected]>
1 parent d730059 commit 053a044

File tree

1 file changed

+1
-1
lines changed
  • samples/sensor/accel_polling/src

1 file changed

+1
-1
lines changed

samples/sensor/accel_polling/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static const struct device *const sensors[] = {LISTIFY(10, ACCELEROMETER_DEVICE,
2929

3030
#define ACCEL_TRIGGERS \
3131
{SENSOR_TRIG_FIFO_FULL, SENSOR_STREAM_DATA_INCLUDE}, \
32-
{SENSOR_TRIG_FIFO_WATERMARK, SENSOR_STREAM_DATA_DROP}
32+
{SENSOR_TRIG_FIFO_WATERMARK, SENSOR_STREAM_DATA_INCLUDE}
3333

3434
#define ACCEL_DEFINE_IODEV(id, _) \
3535
SENSOR_DT_STREAM_IODEV( \

0 commit comments

Comments
 (0)