main cleanup
This commit is contained in:
parent
a8ceb258b8
commit
38c81ae182
@ -103,18 +103,9 @@ void setup() {
|
||||
|
||||
os_timer_setfn(&timer1, timerCallback, &timer_flag);
|
||||
os_timer_arm(&timer1, 20, true);
|
||||
|
||||
//stairs.setState(1);
|
||||
//stairs.setDirection(1);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
/*if(millis() > 25000 && stairs.getState() == 1 && stairs.getDirection() == 1) stairs.setState(0);
|
||||
if(millis() > 45000 && stairs.getDirection() == 1){
|
||||
stairs.setState(1);
|
||||
stairs.setDirection(0);
|
||||
}
|
||||
*/
|
||||
TIMEIF_US(ArduinoOTA.handle(), 1000, "OTA");
|
||||
TIMEIF_US(httpServer.handleClient(), 1000, "HTTP");
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user