diff options
author | alk3pInjection <webmaster@raspii.tech> | 2023-04-20 00:08:54 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2023-04-20 00:08:54 +0800 |
commit | 1f9383cf2cd0b3f8661a18ef9cef3aedd85b66d2 (patch) | |
tree | 898296f0a2e00cce75be416f757b50392109b92d /modules | |
parent | 1186ab02cf00f78de2fbc067e4c400f5b08eec56 (diff) | |
parent | 096005e6294d7fa9bfdf3cfe6db6af2c87d239c8 (diff) |
Merge tag 'LA.QSSI.13.0.r1-09800-qssi.0' into tachibanatachibana-mr1tachibana
"LA.QSSI.13.0.r1-09800-qssi.0"
Change-Id: I56b56d32f1c26e03744b0e2229c88a7c7f756a1a
Diffstat (limited to 'modules')
-rw-r--r-- | modules/sensors/dynamic_sensor/DynamicSensorManager.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/sensors/dynamic_sensor/DynamicSensorManager.h b/modules/sensors/dynamic_sensor/DynamicSensorManager.h index e5ab2b43..7b487d52 100644 --- a/modules/sensors/dynamic_sensor/DynamicSensorManager.h +++ b/modules/sensors/dynamic_sensor/DynamicSensorManager.h @@ -125,9 +125,10 @@ private: // daemons std::vector<sp<BaseDynamicSensorDaemon>> mDaemonVector; - // Sensor operation queue. Calls to the sensor HAL must complete within 1 - // second. - std::chrono::milliseconds kSensorOpTimeout = std::chrono::milliseconds(900); + // Sensor operation queue. Calls to the sensor HAL should complete within ~1 + // second, but to permit delayed replies due to sniff mode, etc., we use a + // slightly longer timeout here. + std::chrono::milliseconds kSensorOpTimeout = std::chrono::milliseconds(1600); std::mutex mSensorOpQueueLock; std::queue<std::pair<uint64_t, std::shared_future<int>>> mSensorOpQueue; uint64_t mNextSensorOpIndex = 0; |