diff options
Diffstat (limited to 'ecp/src/platform/fe310')
-rw-r--r-- | ecp/src/platform/fe310/transport.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ecp/src/platform/fe310/transport.c b/ecp/src/platform/fe310/transport.c index b53534d..1ae0f56 100644 --- a/ecp/src/platform/fe310/transport.c +++ b/ecp/src/platform/fe310/transport.c @@ -35,11 +35,8 @@ static void packet_handler(unsigned char type, unsigned char *buffer, uint16_t l ctx = _ecp_tr_sock->ctx; rv = ecp_pkt_handle(_ecp_tr_sock, NULL, &addr, &bufs, len-EOS_SOCK_SIZE_UDP_HDR); - if ((rv < 0) && ctx->logger) { - int _rv = rv; + if (rv < 0) ECP_LOG_ERR(_ecp_tr_sock, "packet_handler: err:%d\n", (int)rv); - ctx->logger("packet_handler: err:%d\n", _rv); - } if (bufs.packet->buffer) { eos_net_free(buffer, 0); } else { |