[Android] Don't disable sensors since it's handled at higher-level
This commit is contained in:
parent
e56d697755
commit
2874ac4aab
@ -90,9 +90,6 @@ bool SensorImpl::open(Sensor::Type sensor)
|
|||||||
// Set the event rate (not to consume too much battery)
|
// Set the event rate (not to consume too much battery)
|
||||||
ASensorEventQueue_setEventRate(sensorEventQueue, m_sensor, minimumDelay.asMicroseconds());
|
ASensorEventQueue_setEventRate(sensorEventQueue, m_sensor, minimumDelay.asMicroseconds());
|
||||||
|
|
||||||
// Disable the sensor by default
|
|
||||||
setEnabled(true);
|
|
||||||
|
|
||||||
// Save the index of the sensor
|
// Save the index of the sensor
|
||||||
m_index = static_cast<unsigned int>(sensor);
|
m_index = static_cast<unsigned int>(sensor);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user