Revert "davinci: parts: Try to take the motor back on boot when opened"

This reverts commit b4dca743ea.
This commit is contained in:
Arian 2020-10-11 12:13:18 +02:00
parent c98553ca6e
commit 358b4e7a2b
No known key found for this signature in database
GPG Key ID: 48029380598CE3B9

View File

@ -134,23 +134,9 @@ public class PopupCameraService extends Service implements Handler.Callback {
}
}
private void onBootCompleted(){
try {
int status = mMotor.getMotorStatus();
if (status == Constants.MOTOR_STATUS_POPUP ||
status == Constants.MOTOR_STATUS_TAKEBACK_JAM) {
if (DEBUG) Log.d(TAG, "Opened front camera detected, taking back");
mMotor.takebackMotor(1);
}
} catch (RemoteException e) {
// Do nothing
}
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
if (DEBUG) Log.d(TAG, "Starting service");
onBootCompleted();
return START_STICKY;
}