better beep in fail state
This commit is contained in:
parent
3745816585
commit
49a4d79c43
1 changed files with 3 additions and 7 deletions
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue