From 74de61c67b08c49cc77f1d151d299d1ea6448480 Mon Sep 17 00:00:00 2001 From: Boram Bae Date: Thu, 12 Mar 2020 15:46:26 +0900 Subject: [PATCH] Add HRM_LED_GREEN_BATCH_SENSOR sensor Change-Id: I4eaaee0242374857874ca6e2195c0ebde8f5f6b5 Signed-off-by: Boram Bae --- include/sensor_hal_types.h | 1 + include/sensor_types.h | 1 + src/shared/message.h | 2 +- src/shared/sensor_utils.cpp | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/sensor_hal_types.h b/include/sensor_hal_types.h index 2b00348..d6a66f1 100644 --- a/include/sensor_hal_types.h +++ b/include/sensor_hal_types.h @@ -73,6 +73,7 @@ typedef enum { SENSOR_DEVICE_SIGNIFICANT_MOTION = 0x100, SENSOR_DEVICE_HRM_BATCH = 0x200, + SENSOR_DEVICE_HRM_LED_GREEN_BATCH, SENSOR_DEVICE_HUMAN_PEDOMETER = 0x300, SENSOR_DEVICE_HUMAN_SLEEP_MONITOR, diff --git a/include/sensor_types.h b/include/sensor_types.h index d7bb070..265c30d 100644 --- a/include/sensor_types.h +++ b/include/sensor_types.h @@ -95,6 +95,7 @@ typedef enum sensor_type_t { SIGNIFICANT_MOTION_SENSOR = 0x100, HRM_BATCH_SENSOR = 0x200, + HRM_LED_GREEN_BATCH_SENSOR, HUMAN_PEDOMETER_SENSOR = 0x300, HUMAN_SLEEP_MONITOR_SENSOR, diff --git a/src/shared/message.h b/src/shared/message.h index d9ac2eb..5687c2c 100644 --- a/src/shared/message.h +++ b/src/shared/message.h @@ -24,7 +24,7 @@ #include #include -#define MAX_MSG_CAPACITY (16*1024) +#define MAX_MSG_CAPACITY (32*1024) #define MAX_HEADER_RESERVED 3 namespace ipc { diff --git a/src/shared/sensor_utils.cpp b/src/shared/sensor_utils.cpp index 1d589d6..eb4a562 100644 --- a/src/shared/sensor_utils.cpp +++ b/src/shared/sensor_utils.cpp @@ -65,6 +65,7 @@ static std::map types = { {SIGNIFICANT_MOTION_SENSOR, "http://tizen.org/sensor/general/significant_motion"}, {HRM_BATCH_SENSOR, "http://tizen.org/sensor/healthinfo/hrm_batch"}, + {HRM_LED_GREEN_BATCH_SENSOR, "http://tizen.org/sensor/healthinfo/hrm_led_green_batch"}, {HUMAN_PEDOMETER_SENSOR, "http://tizen.org/sensor/healthinfo/human_pedometer"}, {HUMAN_SLEEP_MONITOR_SENSOR, "http://tizen.org/sensor/healthinfo/human_sleep_monitor"}, -- 2.7.4