n5110_crash_fix_127

This commit is contained in:
e2002
2023-03-26 21:28:22 +03:00
parent 4c9f1bdbb0
commit d2193350f8
8 changed files with 21 additions and 9 deletions

View File

@@ -104,7 +104,7 @@ static inline bool _init_async_event_queue(){
}
static inline bool _send_async_event(lwip_event_packet_t ** e){
return _async_queue && xQueueSend(_async_queue, e, portMAX_DELAY) == pdPASS;
return _async_queue && xQueueSend(_async_queue, e, SEND_ASYNC_EVENT_DELAY) == pdPASS;
}
static inline bool _prepend_async_event(lwip_event_packet_t ** e){

View File

@@ -46,7 +46,9 @@ extern "C" {
#ifndef XQUEUE_SIZE
#define XQUEUE_SIZE 128 // (32)
#endif
#ifndef SEND_ASYNC_EVENT_DELAY
#define SEND_ASYNC_EVENT_DELAY portMAX_DELAY
#endif
class AsyncClient;
#define ASYNC_MAX_ACK_TIME 5000