From a677bb197f89bb41e72078de947d274cae1dafcc Mon Sep 17 00:00:00 2001 From: tianjialong Date: Thu, 16 Mar 2023 19:27:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E6=94=AF=E6=8C=81=E9=9D=99=E6=80=81IP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/freertos.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Src/freertos.c b/Src/freertos.c index 74079d8..cb30208 100644 --- a/Src/freertos.c +++ b/Src/freertos.c @@ -157,13 +157,8 @@ void MX_FREERTOS_Init(void) { void StartDefaultTask(void const * argument) { /* init code for LWIP */ - if (config_get()->obtaining_ip_mode == OBTAINING_IP_MODE_STATIC){ - MX_LWIP_STATIC_Init(); - }else if (config_get()->obtaining_ip_mode == OBTAINING_IP_MODE_DHCP){ - MX_LWIP_Init(); - }else{ - printf("lwip error\r\n"); - } + MX_LWIP_STATIC_Init(); + /* USER CODE BEGIN StartDefaultTask */ osThreadDef(mainTask, StartMainTask, osPriorityNormal, 0, 1024); mainTaskHandle = osThreadCreate(osThread(mainTask), NULL);