refactor: 精简R8裸机工程并补强调试链路

This commit is contained in:
2026-03-30 23:28:41 +08:00
parent 0abda47013
commit 3b6f52de63
227 changed files with 952 additions and 255229 deletions
+7
View File
@@ -43,6 +43,13 @@ static err_t tcp_client_on_recv(void *arg, struct tcp_pcb *pcb, struct pbuf *p,
}
if (p == NULL) {
tcp_arg(pcb, NULL);
tcp_recv(pcb, NULL);
tcp_sent(pcb, NULL);
tcp_err(pcb, NULL);
if (tcp_close(pcb) != ERR_OK) {
tcp_abort(pcb);
}
ctx->pcb = NULL;
ctx->status.state = TCP_CLIENT_STATE_DISCONNECTED;
ctx->next_retry_ms = HAL_GetTick() + ctx->config.reconnect_interval_ms;