mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
port stopAllExcept to WiFiUDP to keep the interface the same
This commit is contained in:
parent
966bf45b35
commit
f96ea403dd
@ -290,3 +290,12 @@ void WiFiUDP::stopAll()
|
|||||||
it->stop();
|
it->stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void WiFiUDP::stopAllExcept(WiFiUDP * exC) {
|
||||||
|
for (WiFiUDP* it = _s_first; it; it = it->_next) {
|
||||||
|
if (it->_ctx != exC->_ctx) {
|
||||||
|
DEBUGV("%s %08x %08x\n", __func__, (uint32_t) it, (uint32_t) _s_first);
|
||||||
|
it->stop();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -105,6 +105,7 @@ public:
|
|||||||
uint16_t localPort();
|
uint16_t localPort();
|
||||||
|
|
||||||
static void stopAll();
|
static void stopAll();
|
||||||
|
static void stopAllExcept(WiFiUDP * exC);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user