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

Commit d6573ea8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't throw an error when token is 0"

parents 0a3ffb72 b84158f0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ ndk::ScopedAStatus DirectReportChannel::configure(
        int32_t sensorHandle, ::aidl::android::hardware::sensors::ISensors::RateLevel rate,
        int32_t* _aidl_return) {
    int token = mManager.configureDirectChannel(mId, sensorHandle, static_cast<int>(rate));
    if (token <= 0) {
    if (token < 0) {
        return ndk::ScopedAStatus::fromServiceSpecificError(token);
    }
    *_aidl_return = token;