diff --git a/frameworks/native/sensor/src/sensor_data_channel.cpp b/frameworks/native/sensor/src/sensor_data_channel.cpp index 2ff8d8b21601a37d4842cfd22353fe3790fa57c7..01dc93fdb8e985a046ceba3ddb392ff5727894dd 100755 --- a/frameworks/native/sensor/src/sensor_data_channel.cpp +++ b/frameworks/native/sensor/src/sensor_data_channel.cpp @@ -41,7 +41,7 @@ namespace { constexpr HiLogLabel LABEL = { LOG_CORE, SensorsLogDomain::SENSOR_NATIVE, "SensorDataChannel" }; // max 100 data in cache buffer constexpr int32_t SENSOR_READ_DATA_SIZE = sizeof(struct SensorEvent) * 100; -const uint32_t STOP_EVENT_ID = 0; +constexpr uint32_t STOP_EVENT_ID = 0; } // namespace SensorDataChannel::SensorDataChannel()