mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-31 02:45:41 +00:00
initialize local port
This commit is contained in:
parent
ac74703268
commit
8256361fa9
@ -35,7 +35,7 @@ bool AsyncUDP::writeTo(const uint8_t *data, size_t len, IPAddress ip, uint16_t p
|
|||||||
}
|
}
|
||||||
|
|
||||||
// AsyncUDPPacket
|
// AsyncUDPPacket
|
||||||
AsyncUDPPacket::AsyncUDPPacket(EthernetUDP &source) : _udp(source), _remoteIP(source.remoteIP())
|
AsyncUDPPacket::AsyncUDPPacket(EthernetUDP &source) : _udp(source), _remoteIP(source.remoteIP()), _remotePort(source.remotePort())
|
||||||
{
|
{
|
||||||
if (_udp.available() > 0) {
|
if (_udp.available() > 0) {
|
||||||
_readLength = _udp.read(_buffer, sizeof(_buffer));
|
_readLength = _udp.read(_buffer, sizeof(_buffer));
|
||||||
|
Loading…
Reference in New Issue
Block a user