8000 Replace `std::bind` in `MDNSResponder` for UDP context (#1875) · erpebe/arduino-pico@0e4fd05 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e4fd05

Browse files
authored
Replace std::bind in MDNSResponder for UDP context (earlephilhower#1875)
1 parent d2461a1 commit 0e4fd05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/LEAmDNS/src/LEAmDNS_Helpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ bool MDNSResponder::_allocUDPContext(void) {
161161

162162
if (m_pUDPContext->listen(IP4_ADDR_ANY, DNS_MQUERY_PORT)) {
163163
m_pUDPContext->setMulticastTTL(MDNS_MULTICAST_TTL);
164-
m_pUDPContext->onRx(std::bind(&MDNSResponder::_callProcess, this));
164+
m_pUDPContext->onRx([this] { this->_callProcess(); });
165165
} else {
166166
return false;
167167
}

0 commit comments

Comments
 (0)
0