mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 20:24:19 +00:00
Merge "vibrator impl: log failed callback"
am: 362375c48e
Change-Id: I2583f7d173c1ad7dba515cb021f3376a502d2ee2
This commit is contained in:
@@ -48,7 +48,9 @@ ndk::ScopedAStatus Vibrator::on(int32_t timeoutMs,
|
||||
LOG(INFO) << "Starting on on another thread";
|
||||
usleep(timeoutMs * 1000);
|
||||
LOG(INFO) << "Notifying on complete";
|
||||
callback->onComplete();
|
||||
if (!callback->onComplete().isOk()) {
|
||||
LOG(ERROR) << "Failed to call onComplete";
|
||||
}
|
||||
}).detach();
|
||||
}
|
||||
return ndk::ScopedAStatus::ok();
|
||||
|
||||
Reference in New Issue
Block a user