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

Commit 4608403d authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix return value of AidlSensorHalWrapper::configureDirectChannel" into main

parents 5b9766d9 1aabf5b0
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) {