소스 검색

[DeviceDrivers] Use PBUF_POOL in enc28j60 drivers.

patched by FH.
Bernard Xiong 9 년 전
부모
커밋
ac3af54a7e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;