Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/v1dev' into rp2040_routi…
Browse files Browse the repository at this point in the history
…ng_tunnel_tp
  • Loading branch information
Ing-Dom committed Jun 3, 2024
2 parents 0bdbc3f + 4f0e47f commit c98ccf4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/rp2040_arduino_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,11 +517,10 @@ int RP2040ArduinoPlatform::readBytesMultiCast(uint8_t* buffer, uint16_t maxLen,

if (len > maxLen)
{
print("udp buffer to small. was ");
print(maxLen);
print(", needed ");
println(len);
fatalError();
println("Unexpected UDP data packet length - drop packet");
for (size_t i = 0; i < len; i++)
_udp.read();
return 0;
}

_udp.read(buffer, len);
Expand Down

0 comments on commit c98ccf4

Please sign in to comment.