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

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

Fix return value of AidlSensorHalWrapper::configureDirectChannel am: d430717d

parents b7a9610d d430717d
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -308,8 +308,12 @@ status_t AidlSensorHalWrapper::configureDirectChannel(int32_t sensorHandle, int3
    }
    }


    int32_t token;
    int32_t token;
    mSensors->configDirectReport(sensorHandle, channelHandle, rate, &token);
    status_t status = convertToStatus(
    return token;
        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) {
void AidlSensorHalWrapper::writeWakeLockHandled(uint32_t count) {