pulse() в ButtonOut, +прочие корректировки

This commit is contained in:
DmitriyTychina
2023-09-05 00:20:03 +03:00
parent 93dfa8ee83
commit fbe7b1cf02
16 changed files with 157 additions and 120 deletions

View File

@@ -157,16 +157,17 @@ public:
void loop()
{
ts_sds.update();
if (enableDoByInt)
{
currentMillis = millis();
difference = currentMillis - prevMillis;
if (difference >= _interval)
{
prevMillis = millis();
this->doByInterval();
}
}
IoTItem::loop();
// if (enableDoByInt)
// {
// currentMillis = millis();
// difference = currentMillis - prevMillis;
// if (difference >= _interval)
// {
// prevMillis = millis();
// this->doByInterval();
// }
// }
}
//=======================================================================================================
// doByInterval()