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

Commit df83f9b8 authored by Arthur Ishiguro's avatar Arthur Ishiguro Committed by Automerger Merge Worker
Browse files

Fix return value of AidlSensorHalWrapper::configureDirectChannel am: d430717d am: 9de01dd8

parents e8a7ab25 9de01dd8
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) {