davinci: parts: Delay creating MotorStatusCallback when the motor is opened
* Give the motor enough time to close in case it was still opened on boot without showing the error dialog. Change-Id: Ibc00a999858f5067bbcf07bfecc779f1d0bf3664
This commit is contained in:
parent
027a842a58
commit
4f2af261f3
@ -140,10 +140,11 @@ public class PopupCameraService extends Service implements Handler.Callback {
|
||||
if (status == Constants.MOTOR_STATUS_POPUP_OK
|
||||
|| status == Constants.MOTOR_STATUS_TAKEBACK_JAMMED) {
|
||||
mMotor.takebackMotor(1);
|
||||
Thread.sleep(1200);
|
||||
}
|
||||
mMotorStatusCallback = new MotorStatusCallback();
|
||||
mMotor.setMotorCallback(mMotorStatusCallback);
|
||||
} catch (RemoteException e) {
|
||||
} catch (InterruptedException | RemoteException e) {
|
||||
// Do nothing
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user