 	servo.write(angle);
 	lockTransitionTimeTimeout = lockTransitionTime;
 }
+void servoDoTime(int angle, int time)
+{
+	servo.attach(pinServo);
+	servo.write(angle);
+	lockTransitionTimeTimeout = time;
+}
 void unlockDoor()
 {
 	if (!isDoorLocked)
 		return;
-	servoDo(clockwise);
+	servoDo(servoUnlockAngle);
 	isDoorLocked = false;
 }
 void unlockDoorForce()
 {
-	servoDo(clockwise);
+	servoDo(servoUnlockAngle);
 	isDoorLocked = false;
 }
 void lockDoor()
 {
 	if (isDoorLocked)
 		return;
-	servoDo(counterClockwise);
+	servoDo(servoLockAngle);
 	isDoorLocked = true;
+	doorServerRevertTimeout = 3000;
 }
 
 void cardAccepted()

int soundDelayTimeout = 0;

int lockTransitionTimeTimeout = 0;
int udpResponseTimeout = 0;

int lastCardChkTimeout = 0;

				servo.detach();
		}

		if (doorServerRevertTimeout)
			doorServerRevertTimeout--;

		if (udpResponseTimeout)
			udpResponseTimeout--;

