mirror of
https://github.com/Anonym-tsk/smart-domofon.git
synced 2025-12-15 07:57:04 +03:00
Delay afrer open support
This commit is contained in:
@@ -22,7 +22,7 @@ lib_deps =
|
||||
Bounce2
|
||||
ESP Async WebServer
|
||||
|
||||
; targets = upload, uploadfs
|
||||
targets = upload, uploadfs
|
||||
|
||||
upload_port =
|
||||
upload_flags = --auth=domofon
|
||||
|
||||
@@ -20,5 +20,6 @@
|
||||
#define CALL_HANGUP_DETECT_DELAY 3000
|
||||
#define RELAY_ANSWER_ON_TIME 1500
|
||||
#define RELAY_OPEN_ON_TIME 600
|
||||
#define RELAY_AFTER_OPEN_ON_TIME 500
|
||||
|
||||
#endif // SW_H_
|
||||
|
||||
@@ -34,6 +34,7 @@ void answerAndOpen() {
|
||||
callAnswer();
|
||||
delay(RELAY_ANSWER_ON_TIME);
|
||||
doorOpen();
|
||||
delay(RELAY_AFTER_OPEN_ON_TIME);
|
||||
callHangUp();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user