sensor_set_skip_duplicates()

Specify whether duplicate sensor events should be skipped.

Synopsis:

#include <bps/sensor.h>
 
BPS_API int sensor_set_skip_duplicates(sensor_type_t type, bool enable_skipdup)

Arguments:

type
The sensor that should skip duplicate events.
enable_skipdup
If true the device should attempt to skip duplicate events from the specified sensor, if false the device should not skip duplicate events.

Library:

libbps

Description:

The sensor_set_skip_duplicates() function enables or disables the skipping of duplicate events that are received from the specified sensor.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.