mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-29 07:32:18 +03:00
pulse() в ButtonOut, +прочие корректировки
This commit is contained in:
@@ -64,13 +64,7 @@ class AnalogAdc : public IoTItem {
|
||||
_avgSumm = _avgSumm + IoTgpio.analogRead(_pin);
|
||||
_avgCount++;
|
||||
}
|
||||
|
||||
currentMillis = millis();
|
||||
difference = currentMillis - prevMillis;
|
||||
if (difference >= _interval) {
|
||||
prevMillis = millis();
|
||||
this->doByInterval();
|
||||
}
|
||||
IoTItem::loop();
|
||||
}
|
||||
|
||||
~AnalogAdc(){};
|
||||
|
||||
Reference in New Issue
Block a user