File tree 1 file changed +6
-2
lines changed
Filter options
1 file changed +6
-2
lines changed
Original file line number Diff line number Diff line change 8
8
#include " esp_task.h"
9
9
#include " esp32-hal.h"
10
10
11
+ #ifndef ARDUINO_NETWORK_EVENT_TASK_STACK_SIZE
12
+ #define ARDUINO_NETWORK_EVENT_TASK_STACK_SIZE 4096
13
+ #endif
14
+
11
15
NetworkEvents::NetworkEvents () : _arduino_event_group(NULL ), _arduino_event_queue(NULL ), _arduino_event_task_handle(NULL ) {}
12
16
13
17
NetworkEvents::~NetworkEvents () {
@@ -61,8 +65,8 @@ bool NetworkEvents::initNetworkEvents() {
61
65
[](void *self) {
62
66
static_cast <NetworkEvents *>(self)->_checkForEvent ();
63
67
},
64
- " arduino_events" , // label
65
- 4096 , // event task's stack size
68
+ " arduino_events" , // label
69
+ ARDUINO_NETWORK_EVENT_TASK_STACK_SIZE, // event task's stack size
66
70
this , ESP_TASKD_EVENT_PRIO - 1 , &_arduino_event_task_handle, ARDUINO_EVENT_RUNNING_CORE
67
71
);
68
72
if (!_arduino_event_task_handle) {
You can’t perform that action at this time.
0 commit comments