overridable input check, startup delay

This commit is contained in:
2018-12-03 16:52:27 +01:00
parent d906286eda
commit 48a32d2124
3 changed files with 6 additions and 1 deletions

View File

@@ -2,6 +2,10 @@
void PirInputPlugin::checkInput()
{
if(startupDelay > millis()){
return;
}
val = digitalRead(config.pin); // read input value
if (val == HIGH)
{ // check if the input is HIGH