diff --git a/components/lwip/lwip b/components/lwip/lwip index f79221431f..a1bd9e441b 160000 --- a/components/lwip/lwip +++ b/components/lwip/lwip @@ -1 +1 @@ -Subproject commit f79221431fa9042b3572d271d687de66da7560c4 +Subproject commit a1bd9e441b10a94f97ec8c20daf7fa90983e7cc2 diff --git a/components/lwip/port/freertos/include/arch/sys_arch.h b/components/lwip/port/freertos/include/arch/sys_arch.h index ba85471397..f945a14c0c 100644 --- a/components/lwip/port/freertos/include/arch/sys_arch.h +++ b/components/lwip/port/freertos/include/arch/sys_arch.h @@ -63,7 +63,7 @@ void sys_delay_ms(uint32_t ms); */ #define sys_mbox_set_invalid( x ) *x = NULL -#define sys_sem_valid( x ) ( ( ( *x ) == NULL) ? pdFALSE : pdTRUE ) +#define sys_sem_valid( x ) ( ( (x) == NULL ) ? pdFALSE : ( ( *x ) == NULL ? pdFALSE : pdTRUE ) ) #define sys_sem_set_invalid( x ) ( ( *x ) = NULL ) void sys_delay_ms(uint32_t ms);