diff options
| author | sakumisu <[email protected]> | 2024-02-24 14:57:01 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-02-24 14:57:01 +0800 |
| commit | 3508879e1d6f93f2ced4170674af072b126b157b (patch) | |
| tree | 81777d7f32e53cdcc6c5803dea354d838e491309 | |
| parent | 5c36affc3c9ba9384b7e42297c59facd0279c98d (diff) | |
fix asix output zlp
| -rw-r--r-- | class/vendor/net/usbh_asix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/class/vendor/net/usbh_asix.c b/class/vendor/net/usbh_asix.c index d6c017bb..39ab4a93 100644 --- a/class/vendor/net/usbh_asix.c +++ b/class/vendor/net/usbh_asix.c @@ -741,7 +741,7 @@ err_t usbh_asix_linkoutput(struct netif *netif, struct pbuf *p) g_asix_tx_buffer[2] = ~g_asix_tx_buffer[0]; g_asix_tx_buffer[3] = ~g_asix_tx_buffer[1]; - if ((p->tot_len + 4) % USB_GET_MAXPACKETSIZE(g_asix_class.bulkout->wMaxPacketSize)) { + if (!(p->tot_len + 4) % USB_GET_MAXPACKETSIZE(g_asix_class.bulkout->wMaxPacketSize)) { USB_LOG_DBG("txlen:%d\r\n", p->tot_len + 8); g_asix_tx_buffer[p->tot_len + 4 + 0] = 0x00; g_asix_tx_buffer[p->tot_len + 4 + 1] = 0x00; |
