diff options
author | Hongkuk, Son <hongkuk.son@samsung.com> | 2015-12-16 12:12:39 +0900 |
---|---|---|
committer | Hongkuk, Son <hongkuk.son@samsung.com> | 2015-12-16 12:16:24 +0900 |
commit | 6f86a79e4b4e35cf85dede63686401408b9b6ff7 (patch) | |
tree | d46a3713c316ea73aa7dbdbb5a1f7b3a332e09b8 | |
parent | b85d277d88d1d3681cdb1bc9a88dc88cde55f3fc (diff) | |
download | sensor-plugins-tizen.tar.gz sensor-plugins-tizen.tar.bz2 sensor-plugins-tizen.zip |
sensor-plugins: use pre-defined absolute axes value in input.htizen
ABS_DISTANCE(0x19)
Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I59fc8dd736cee204a1e41e6a55029d7c01287710
-rw-r--r--[-rwxr-xr-x] | src/plugins/proxi/proxi_sensor_hal.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/proxi/proxi_sensor_hal.cpp b/src/plugins/proxi/proxi_sensor_hal.cpp index 1429c9e..4b7f948 100755..100644 --- a/src/plugins/proxi/proxi_sensor_hal.cpp +++ b/src/plugins/proxi/proxi_sensor_hal.cpp @@ -33,8 +33,6 @@ using std::ifstream; #define ELEMENT_VENDOR "VENDOR" #define ATTR_VALUE "value" -#define PROXI_CODE 0x0019 - proxi_sensor_hal::proxi_sensor_hal() : m_state(-1) , m_fired_time(0) @@ -150,7 +148,7 @@ bool proxi_sensor_hal::update_value(void) } DBG("read event, len : %d , type : %x , code : %x , value : %x", len, proxi_event.type, proxi_event.code, proxi_event.value); - if ((proxi_event.type == EV_ABS) && (proxi_event.code == PROXI_CODE)) { + if ((proxi_event.type == EV_ABS) && (proxi_event.code == ABS_DISTANCE)) { AUTOLOCK(m_value_mutex); m_state = proxi_event.value; m_fired_time = sensor_hal_base::get_timestamp(&proxi_event.time); |