Merge "Sensor: HAL guideline clarification upon activation request"
This commit is contained in:
commit
0b2872c784
1 changed files with 5 additions and 4 deletions
|
@ -578,10 +578,11 @@ typedef struct sensors_poll_device_1 {
|
|||
* sensor_handle is the handle of the sensor to change.
|
||||
* enabled set to 1 to enable, or 0 to disable the sensor.
|
||||
*
|
||||
* After sensor de-activation, existing sensor events that have not
|
||||
* been picked up by poll() should be abandoned immediately so that
|
||||
* subsequent activation will not get stale sensor events (events
|
||||
* that is generated prior to the latter activation).
|
||||
* Before sensor activation, existing sensor events that have not
|
||||
* been picked up by poll() should be abandoned so that application
|
||||
* upon new activation request will not get stale events.
|
||||
* (events that are generated during latter activation or during
|
||||
* data injection mode after sensor deactivation)
|
||||
*
|
||||
* Return 0 on success, negative errno code otherwise.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue