Delay afrer open support

This commit is contained in:
Nikolay Vasilchuk
2019-06-06 16:51:51 +03:00
parent 1f5c9acf89
commit f03a327ecc
3 changed files with 3 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ lib_deps =
Bounce2
ESP Async WebServer
; targets = upload, uploadfs
targets = upload, uploadfs
upload_port =
upload_flags = --auth=domofon

View File

@@ -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_

View File

@@ -34,6 +34,7 @@ void answerAndOpen() {
callAnswer();
delay(RELAY_ANSWER_ON_TIME);
doorOpen();
delay(RELAY_AFTER_OPEN_ON_TIME);
callHangUp();
}