Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 00d3009

Browse files
committed
Enable WDT inside Arduino and PIO
1 parent cefd9e4 commit 00d3009

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/AsyncTCP.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ extern "C" {
3030
#include "lwip/pbuf.h"
3131
}
3232

33+
//If core is not defined, then we are running in Arduino or PIO
3334
#ifndef CONFIG_ASYNC_TCP_RUNNING_CORE
3435
#define CONFIG_ASYNC_TCP_RUNNING_CORE -1 //any available core
35-
#endif
36-
37-
#ifndef CONFIG_ASYNC_TCP_USE_WDT
38-
#define CONFIG_ASYNC_TCP_USE_WDT 0 //if enabled, adds between 33us and 200us per event
36+
#define CONFIG_ASYNC_TCP_USE_WDT 1 //if enabled, adds between 33us and 200us per event
3937
#endif
4038

4139
class AsyncClient;

0 commit comments

Comments
 (0)