disabled the horn because it resets the arduino

This commit is contained in:
Bob 2015-11-22 23:16:28 +01:00
parent fe47245de1
commit a258ef73ff

View file

@ -507,12 +507,14 @@ void ToggleLock()
{ {
for (uint8_t i = 0; i < 3; i++) for (uint8_t i = 0; i < 3; i++)
{ {
digitalWrite(PIN_HORN, HIGH); //disabled because sounding the horn resets the arduino
DelayLEDs(250); //digitalWrite(PIN_HORN, HIGH);
digitalWrite(PIN_HORN, LOW); DelayLEDs(500);
DelayLEDs(250); //disabled because sounding the horn resets the arduino
//digitalWrite(PIN_HORN, LOW);
DelayLEDs(500);
} }
DelayLEDs(8500); DelayLEDs(7000);
} }
Serial.println("finished lock action"); Serial.println("finished lock action");
@ -572,9 +574,10 @@ void loop()
{ {
Serial.print("iButton not authenticated\n"); Serial.print("iButton not authenticated\n");
SetLEDState(LEDState_Busy); SetLEDState(LEDState_Busy);
digitalWrite(PIN_HORN, HIGH); //disabled because sounding the horn resets the arduino
DelayLEDs(500); //digitalWrite(PIN_HORN, HIGH);
digitalWrite(PIN_HORN, LOW); //DelayLEDs(500);
//digitalWrite(PIN_HORN, LOW);
deniedcount = 0; deniedcount = 0;
} }
} }