From 7b8e600c46c1f72a1bc189aa2e85e71d083e48fd Mon Sep 17 00:00:00 2001 From: maosiping Date: Mon, 13 Dec 2021 16:54:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=93=9D=E7=89=99=E7=BD=91=E7=BB=9C=E4=BB=A3?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: maosiping --- src/core/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tcp.c b/src/core/tcp.c index bd7d64e..9d0b96b 100644 --- a/src/core/tcp.c +++ b/src/core/tcp.c @@ -156,7 +156,7 @@ static const char *const tcp_state_str[] = { }; /* last local TCP port */ -static u16_t tcp_port = TCP_LOCAL_PORT_RANGE_START; +static volatile u16_t tcp_port = TCP_LOCAL_PORT_RANGE_START; /* Incremented every coarse grained timer shot (typically every 500 ms). */ u32_t tcp_ticks; -- GitLab