fix(class): change ifdef to if for LWIP_TCPIP_CORE_LOCKING_INPUT
This commit is contained in:
4
class/vendor/net/usbh_asix.c
vendored
4
class/vendor/net/usbh_asix.c
vendored
@@ -657,7 +657,7 @@ void usbh_asix_rx_thread(void *argument)
|
||||
uint16_t len;
|
||||
uint16_t len_crc;
|
||||
struct pbuf *p;
|
||||
#ifdef LWIP_TCPIP_CORE_LOCKING_INPUT
|
||||
#if LWIP_TCPIP_CORE_LOCKING_INPUT
|
||||
pbuf_type type = PBUF_ROM;
|
||||
#else
|
||||
pbuf_type type = PBUF_POOL;
|
||||
@@ -704,7 +704,7 @@ find_class:
|
||||
|
||||
p = pbuf_alloc(PBUF_RAW, len, type);
|
||||
if (p != NULL) {
|
||||
#ifdef LWIP_TCPIP_CORE_LOCKING_INPUT
|
||||
#if LWIP_TCPIP_CORE_LOCKING_INPUT
|
||||
p->payload = (uint8_t *)&g_asix_rx_buffer[4];
|
||||
#else
|
||||
memcpy(p->payload, (uint8_t *)&g_asix_rx_buffer[4], len);
|
||||
|
||||
4
class/vendor/net/usbh_rtl8152.c
vendored
4
class/vendor/net/usbh_rtl8152.c
vendored
@@ -2133,7 +2133,7 @@ void usbh_rtl8152_rx_thread(void *argument)
|
||||
uint16_t len;
|
||||
uint16_t data_offset;
|
||||
struct pbuf *p;
|
||||
#ifdef LWIP_TCPIP_CORE_LOCKING_INPUT
|
||||
#if LWIP_TCPIP_CORE_LOCKING_INPUT
|
||||
pbuf_type type = PBUF_ROM;
|
||||
#else
|
||||
pbuf_type type = PBUF_POOL;
|
||||
@@ -2190,7 +2190,7 @@ find_class:
|
||||
|
||||
p = pbuf_alloc(PBUF_RAW, len, type);
|
||||
if (p != NULL) {
|
||||
#ifdef LWIP_TCPIP_CORE_LOCKING_INPUT
|
||||
#if LWIP_TCPIP_CORE_LOCKING_INPUT
|
||||
p->payload = (uint8_t *)&g_rtl8152_rx_buffer[data_offset + sizeof(struct rx_desc)];
|
||||
#else
|
||||
memcpy(p->payload, (uint8_t *)&g_rtl8152_rx_buffer[data_offset + sizeof(struct rx_desc)], len);
|
||||
|
||||
Reference in New Issue
Block a user