diff --git a/Core/Src/freertos.c b/Core/Src/freertos.c index 9d6287d..35b83a5 100644 --- a/Core/Src/freertos.c +++ b/Core/Src/freertos.c @@ -196,7 +196,7 @@ void start_gpio_di_do_task(void const *argument) send_data_flag_cmd = 0; } } - vTaskDelay(200); + vTaskDelay(100); } /* USER CODE END start_gpio_di_do_task */ } diff --git a/MDK-ARM/remote_dido_unit.uvprojx b/MDK-ARM/remote_dido_unit.uvprojx index 5b2a092..7a1875f 100644 --- a/MDK-ARM/remote_dido_unit.uvprojx +++ b/MDK-ARM/remote_dido_unit.uvprojx @@ -16,8 +16,8 @@ STM32F407VGTx STMicroelectronics - Keil.STM32F4xx_DFP.2.17.1 - https://www.keil.com/pack/ + Keil.STM32F4xx_DFP.2.16.0 + http://www.keil.com/pack/ IRAM(0x20000000-0x2001BFFF) IRAM2(0x2001C000-0x2001FFFF) IROM(0x8000000-0x80FFFFF) CLOCK(25000000) FPU2 CPUTYPE("Cortex-M4") TZ @@ -186,6 +186,7 @@ 2 0 0 + 0 1 0 8 diff --git a/User/application/src/tcpserverc.c b/User/application/src/tcpserverc.c index 72b31d8..c010339 100644 --- a/User/application/src/tcpserverc.c +++ b/User/application/src/tcpserverc.c @@ -88,9 +88,8 @@ static err_t tcpecho_recv_control(void *arg, struct tcp_pcb *tpcb, struct pbuf * /*2. 判断所要执行的操作 读或写指令*/ /*3. 对要发送的数据进行校验,组包,返回数据*/ - - pbuf_free(p); } + pbuf_free(p); } else if (err == ERR_OK) // 检测到对方主动关闭连接时,也会调用recv函数,此时p为空 {