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);