Explorar o código

[DeviceDrivers] Use PBUF_POOL in enc28j60 drivers.

patched by FH.
Bernard Xiong %!s(int64=9) %!d(string=hai) anos
pai
achega
ac3af54a7e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/drivers/spi/enc28j60.c

+ 1 - 1
components/drivers/spi/enc28j60.c

@@ -675,7 +675,7 @@ static struct pbuf *enc28j60_rx(rt_device_t dev)
         else
         {
             /* allocation pbuf */
-            p = pbuf_alloc(PBUF_LINK, len, PBUF_RAM);
+            p = pbuf_alloc(PBUF_LINK, len, PBUF_POOL);
             if (p != RT_NULL)
             {
                 struct pbuf* q;