fix(class): change ifdef to if for LWIP_TCPIP_CORE_LOCKING_INPUT
This commit is contained in:
@@ -232,7 +232,7 @@ void usbh_cdc_ecm_rx_thread(void *argument)
|
||||
int ret;
|
||||
err_t err;
|
||||
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;
|
||||
@@ -271,7 +271,7 @@ find_class:
|
||||
|
||||
p = pbuf_alloc(PBUF_RAW, g_cdc_ecm_rx_length, type);
|
||||
if (p != NULL) {
|
||||
#ifdef LWIP_TCPIP_CORE_LOCKING_INPUT
|
||||
#if LWIP_TCPIP_CORE_LOCKING_INPUT
|
||||
p->payload = g_cdc_ecm_rx_buffer;
|
||||
#else
|
||||
memcpy(p->payload, (uint8_t *)g_cdc_ecm_rx_buffer, g_cdc_ecm_rx_length);
|
||||
|
||||
@@ -258,7 +258,7 @@ void usbh_cdc_ncm_rx_thread(void *argument)
|
||||
int ret;
|
||||
err_t err;
|
||||
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;
|
||||
@@ -321,7 +321,7 @@ find_class:
|
||||
|
||||
p = pbuf_alloc(PBUF_RAW, ndp16_datagram->wDatagramLength, type);
|
||||
if (p != NULL) {
|
||||
#ifdef LWIP_TCPIP_CORE_LOCKING_INPUT
|
||||
#if LWIP_TCPIP_CORE_LOCKING_INPUT
|
||||
p->payload = (uint8_t *)&g_cdc_ncm_rx_buffer[ndp16_datagram->wDatagramIndex];
|
||||
#else
|
||||
memcpy(p->payload, (uint8_t *)&g_cdc_ncm_rx_buffer[ndp16_datagram->wDatagramIndex], ndp16_datagram->wDatagramLength);
|
||||
|
||||
Reference in New Issue
Block a user