diff --git a/include/Const.h b/include/Const.h index e40a41fa..3ba22bdf 100644 --- a/include/Const.h +++ b/include/Const.h @@ -41,7 +41,7 @@ enum TimerTask_t { WIFI_SCAN, TIME, TIME_SYNC, UPTIME, - UDP, + UDPP, TIMES, PTASK }; diff --git a/src/DeviceList.cpp b/src/DeviceList.cpp index 2fd5c732..c22234e8 100644 --- a/src/DeviceList.cpp +++ b/src/DeviceList.cpp @@ -54,7 +54,7 @@ void asyncUdpInit() { //будем отправлять каждые 30 секунд презентацию данного устройства ts.add( - UDP, 60000, [&](void*) { + UDPP, 60000, [&](void*) { if (isNetworkActive()) { SerialPrint("i", F("UDP"), F("Broadcast device presentation")); asyncUdp.broadcastTo(getThisDevice().c_str(), 4210);