mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-06-12 01:29:28 +00:00
Small optimalization for cs8900_input().
This commit is contained in:
parent
9700fe9b69
commit
332072de60
|
@ -459,7 +459,7 @@ static struct pbuf *cs8900_input(struct netif *netif)
|
|||
LWIP_DEBUGF(NETIF_DEBUG, ("cs8900_input: pbuf @%p tot_len %"U16_F" len %"U16_F"\n", q, q->tot_len, q->len));
|
||||
ptr = q->payload;
|
||||
// TODO: CHECK: what if q->len is odd? we don't use the last byte?
|
||||
for (i = 0; i < (q->len + 1) / 2; i++)
|
||||
for (i = (q->len + 1) / 2; i > 0; i--)
|
||||
{
|
||||
*ptr = RXTXREG;
|
||||
ptr++;
|
||||
|
|
Loading…
Reference in New Issue
Block a user