forked from tbnobody/OpenDTU
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Too small event_queue_size in AsyncTCP lead to wdt reset
Fix tbnobody#1705
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --color -ruN a/.pio/libdeps/$$$env$$$/AsyncTCP-esphome/src/AsyncTCP.cpp b/.pio/libdeps/$$$env$$$/AsyncTCP-esphome/src/AsyncTCP.cpp | ||
--- a/.pio/libdeps/$$$env$$$/AsyncTCP-esphome/src/AsyncTCP.cpp | ||
+++ b/.pio/libdeps/$$$env$$$/AsyncTCP-esphome/src/AsyncTCP.cpp | ||
@@ -97,7 +97,7 @@ | ||
|
||
static inline bool _init_async_event_queue(){ | ||
if(!_async_queue){ | ||
- _async_queue = xQueueCreate(32, sizeof(lwip_event_packet_t *)); | ||
+ _async_queue = xQueueCreate(CONFIG_ASYNC_TCP_EVENT_QUEUE_SIZE, sizeof(lwip_event_packet_t *)); | ||
if(!_async_queue){ | ||
return false; | ||
} | ||
diff --color -ruN a/.pio/libdeps/$$$env$$$/AsyncTCP-esphome/src/AsyncTCP.h b/.pio/libdeps/$$$env$$$/AsyncTCP-esphome/src/AsyncTCP.h | ||
--- a/.pio/libdeps/$$$env$$$/AsyncTCP-esphome/src/AsyncTCP.h | ||
+++ b/.pio/libdeps/$$$env$$$/AsyncTCP-esphome/src/AsyncTCP.h | ||
@@ -53,6 +53,10 @@ | ||
#define CONFIG_ASYNC_TCP_STACK_SIZE 8192 * 2 | ||
#endif | ||
|
||
+#ifndef CONFIG_ASYNC_TCP_EVENT_QUEUE_SIZE | ||
+#define CONFIG_ASYNC_TCP_EVENT_QUEUE_SIZE 32 | ||
+#endif | ||
+ | ||
class AsyncClient; | ||
|
||
#define ASYNC_MAX_ACK_TIME 5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters