From 7a69c9070c5628a1657a00e9b03269ebf48128cd Mon Sep 17 00:00:00 2001 From: Francescodario Cuzzocrea Date: Mon, 9 Sep 2019 21:49:21 +0200 Subject: [PATCH] HACK: msm8226-common: sensors: make it compile on P --- sensors/multihal.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sensors/multihal.cpp b/sensors/multihal.cpp index 9af068f..d39d39e 100644 --- a/sensors/multihal.cpp +++ b/sensors/multihal.cpp @@ -381,12 +381,11 @@ int sensors_poll_context_t::inject_sensor_data(struct sensors_poll_device_1 *dev int retval = -EINVAL; ALOGV("inject_sensor_data"); // Get handle for the sensor owning the event being injected - int local_handle = get_local_handle(data->sensor); + //int local_handle = get_local_handle(data->sensor); sensors_poll_device_1_t* v1 = this->get_v1_device_by_handle(data->sensor); retval = v1->inject_sensor_data(dev, data); ALOGV("retval %d", retval); return retval; - } int sensors_poll_context_t::close() {