From 4117872c4c95be75bc95d208f454df41ee81fa5a Mon Sep 17 00:00:00 2001 From: Myself Date: Fri, 21 Apr 2023 08:38:18 +0800 Subject: [PATCH] =?UTF-8?q?[SAL][Kconfig]=E4=BD=BF=E7=94=A8=E7=BD=91?= =?UTF-8?q?=E7=BB=9C=E6=A3=80=E6=B5=8B=E6=89=8D=E4=BE=9D=E8=B5=96workqueue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/net/sal/Kconfig | 2 +- components/net/sal/src/sal_socket.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/net/sal/Kconfig b/components/net/sal/Kconfig index 0197ae544e..fc9dc94101 100644 --- a/components/net/sal/Kconfig +++ b/components/net/sal/Kconfig @@ -1,13 +1,13 @@ menuconfig RT_USING_SAL bool "SAL: socket abstraction layer" select RT_USING_NETDEV - select RT_USING_SYSTEM_WORKQUEUE default n if RT_USING_SAL config SAL_INTERNET_CHECK bool "Enable the ability that check internet status" + select RT_USING_SYSTEM_WORKQUEUE default y help The ability that check internet status is provided by RT-Thread. diff --git a/components/net/sal/src/sal_socket.c b/components/net/sal/src/sal_socket.c index 136a8428da..c8f5d63709 100644 --- a/components/net/sal/src/sal_socket.c +++ b/components/net/sal/src/sal_socket.c @@ -27,7 +27,7 @@ #endif /* check system workqueue stack size */ -#if RT_SYSTEM_WORKQUEUE_STACKSIZE < 1536 +#ifdef SAL_INTERNET_CHECK && #if RT_SYSTEM_WORKQUEUE_STACKSIZE < 1536 #error "The system workqueue stack size must more than 1536 bytes" #endif