Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d430717d authored by Arthur Ishiguro's avatar Arthur Ishiguro
Browse files

Fix return value of AidlSensorHalWrapper::configureDirectChannel

Fixes: 287721163
Test: Test on device
Change-Id: I9585d8c1a285e27ed8c1f506dd9ac24a47631f93
Merged-In: I9585d8c1a285e27ed8c1f506dd9ac24a47631f93
parent 7dae9c10
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -308,8 +308,12 @@ status_t AidlSensorHalWrapper::configureDirectChannel(int32_t sensorHandle, int3
    }

    int32_t token;
    mSensors->configDirectReport(sensorHandle, channelHandle, rate, &token);
    return token;
    status_t status = convertToStatus(
        mSensors->configDirectReport(sensorHandle, channelHandle, rate, &token));
    if (status == OK && rate != ISensors::RateLevel::STOP) {
        status = static_cast<status_t>(token);
    }
    return status;
}

void AidlSensorHalWrapper::writeWakeLockHandled(uint32_t count) {