mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-04-01 04:49:13 +03:00
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user