summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--services/inputflinger/reader/mapper/SensorInputMapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/inputflinger/reader/mapper/SensorInputMapper.cpp b/services/inputflinger/reader/mapper/SensorInputMapper.cpp
index 7d97014f55..7ac2dec895 100644
--- a/services/inputflinger/reader/mapper/SensorInputMapper.cpp
+++ b/services/inputflinger/reader/mapper/SensorInputMapper.cpp
@@ -146,7 +146,7 @@ void SensorInputMapper::configure(nsecs_t when, const InputReaderConfiguration*
axisInfo.axis = -1;
// Check key layout map for sensor data mapping to axes
auto ret = getDeviceContext().mapSensor(abs);
- if (ret) {
+ if (ret.ok()) {
InputDeviceSensorType sensorType = (*ret).first;
int32_t sensorDataIndex = (*ret).second;
const Axis& axis = createAxis(axisInfo, rawAxisInfo);