polling of contacts fixed

This commit is contained in:
2018-06-30 13:46:22 +03:00
parent fa864bd9f7
commit 34c618db72
2 changed files with 8 additions and 3 deletions

View File

@@ -88,10 +88,13 @@ void Input::Parse()
int Input::poll() {
if (!isValid()) return -1;
if (inType & IN_PUSH_ON)
contactPoll();
else if (inType & IN_DHT22)
if (inType & IN_DHT22)
dht22Poll();
/* example
else if (inType & IN_ANALOG)
analogPoll(); */
else
contactPoll();
return 0;
}