summaryrefslogtreecommitdiff
path: root/fw/fe310
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310')
-rw-r--r--fw/fe310/eos/net/sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fw/fe310/eos/net/sock.c b/fw/fe310/eos/net/sock.c
index 1db0cd9..c9934e8 100644
--- a/fw/fe310/eos/net/sock.c
+++ b/fw/fe310/eos/net/sock.c
@@ -118,7 +118,7 @@ static int sock_send(unsigned char sock, unsigned char *msg, uint16_t msg_len, E
buffer[1] = addr->port;
buffer += sizeof(addr->port);
if (msg) {
- if (msg_len + EOS_SOCK_SIZE_UDP_HDR > EOS_NET_MTU) return EOS_ERR_SIZE;
+ if (msg_len + EOS_SOCK_SIZE_UDP_HDR > EOS_NET_SIZE_BUF) return EOS_ERR_SIZE;
memcpy(buffer, msg, msg_len);
}