mirror of
https://github.com/anklimov/lighthub
synced 2025-12-07 04:09:49 +03:00
polling of contacts fixed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user