Disabled assertions in stack core

This commit is contained in:
Joseph Henry
2017-10-18 22:16:53 -07:00
parent ad99e14301
commit c0e2a9b6f8
2 changed files with 3 additions and 2 deletions

View File

@@ -52,6 +52,8 @@
#define LWIP_RAND() ((u32_t)rand())
#define LWIP_NOASSERT 1
/* different handling for unit test, normally not needed */
#ifdef LWIP_NOASSERT_ON_ERROR
#define LWIP_ERROR(message, expression, handler) do { if (!(expression)) { \

View File

@@ -178,8 +178,7 @@ raw_input(struct pbuf *p, struct netif *inp)
}
} else {
/* sanity-check that the receive callback did not alter the pbuf */
LWIP_ASSERT("raw pcb recv callback altered pbuf payload pointer without eating packet",
p->payload == old_payload);
// LWIP_ASSERT("raw pcb recv callback altered pbuf payload pointer without eating packet",p->payload == old_payload);
}
}
/* no receive callback function was set for this raw PCB */