 		}
 	}
 
-	isLocked = (bool)EEPROM.read(LOCK_POSITION);
-	Serial.print("position: ");
-	Serial.println(isLocked);
-
 	openAtTime = EEPROMReadlong(OAT_ADDRESS);
+
+	lockPosition = unknown;
+
+	delay(100);
 
 	if (DEBUG) printDebugInfo();
 	if (DEBUG) Serial.println("Initialized");

{
	if (openAtTime <= getRtcTime()) // should be open
	{
		if (isLocked)
		{
			lockControl("open");
			if (DEBUG)

	long two = EEPROM.read(address + 2);
	long one = EEPROM.read(address + 3);

	return ((four << 0) & 0xFF) + 
		((three << 8) & 0xFFFF) + 
		((two << 16) & 0xFFFFFF) + 
		((one << 24) & 0xFFFFFFFF);
}

// ATTRIBUTION:
