better beep in fail state

This commit is contained in:
Matthew Frost 2023-12-24 21:15:19 +01:00
parent 3745816585
commit 49a4d79c43

View file

@ -29,12 +29,8 @@ void granted_beep()
void denied_beep(void)
{
#ifdef ALARM_PIN
for (int i=0; i<100; i++)
{
delay(4);
digitalWrite(ALARM_PIN, LOW);
delay(4);
digitalWrite(ALARM_PIN, HIGH);
}
digitalWrite(ALARM_PIN, LOW);
delay(500);
digitalWrite(ALARM_PIN, HIGH);
#endif
}