Skip to content

Commit

Permalink
[compasschain] Connect interval source to orientation adapter. JB#39284
Browse files Browse the repository at this point in the history
When compass chain uses android sensor hal, the stand-by override
and interval property handling is left unbound. This means sampling
interval requests made by client sw are not forwarded from compass
chain to android orientation sensor adaptor - and in some devices
this means that the sensor is never started.

When using android orientation sensor for compass data, bind stand-by
override and sampling interval properties to orientation sensor.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Jun 19, 2018
1 parent bd1f16e commit 43436ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chains/compasschain/compasschain.cpp
Expand Up @@ -178,6 +178,9 @@ CompassChain::CompassChain(const QString& id) :

addStandbyOverrideSource(accelerometerChain);
setIntervalSource(accelerometerChain);
} else {
addStandbyOverrideSource(orientAdaptor);
setIntervalSource(orientAdaptor);
}
}

Expand Down

0 comments on commit 43436ba

Please sign in to comment.