From 6c541fa91ba74a90c6c403ace76b5ebeefcadff0 Mon Sep 17 00:00:00 2001 From: wuzhihuitmac Date: Fri, 25 Apr 2025 11:23:00 +0800 Subject: [PATCH] modify the problem about HDI_DISABLE_SENSOR_TIMEOUT not found Signed-off-by: wuzhihuitmac Change-Id: I77909b0c159cfb581622031224ffe2d6999b8524 --- services/hdi_connection/interface/src/sensor_hdi_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/hdi_connection/interface/src/sensor_hdi_connection.cpp b/services/hdi_connection/interface/src/sensor_hdi_connection.cpp index 4544a380..6dff811f 100644 --- a/services/hdi_connection/interface/src/sensor_hdi_connection.cpp +++ b/services/hdi_connection/interface/src/sensor_hdi_connection.cpp @@ -40,7 +40,6 @@ constexpr float POWER = 20.0; constexpr float RESOLUTION = 0.000001; constexpr float MIN_SAMPLE_PERIOD_NS = 100000000; constexpr float MAX_SAMPLE_PERIOD_NS = 1000000000; -constexpr int32_t HDI_DISABLE_SENSOR_TIMEOUT = -23; const std::string VERSION_NAME = "1.0.1"; std::unordered_set g_supportMockSensors = { SENSOR_TYPE_ID_COLOR, @@ -49,6 +48,7 @@ std::unordered_set g_supportMockSensors = { SENSOR_TYPE_ID_PROXIMITY1 }; #endif // BUILD_VARIANT_ENG +constexpr int32_t HDI_DISABLE_SENSOR_TIMEOUT = -23; } // namespace int32_t SensorHdiConnection::ConnectHdi() -- Gitee