We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b119e79 commit 28c6813Copy full SHA for 28c6813
1 file changed
src/drivers/solo5net.cpp
@@ -84,7 +84,7 @@ net::Packet_ptr Solo5Net::recv_packet()
84
auto* pckt = (net::Packet*) buffer.addr;
85
new (pckt) net::Packet(0, MTU(), packet_len(), buffer.bufstore);
86
// Populate the packet buffer with new packet, if any
87
- int size = MTU();
+ int size = packet_len();
88
if (solo5_net_read_sync(pckt->buf(), &size) == 0) {
89
// Adjust packet size to match received data
90
if (size) {
0 commit comments