From d4513578e9999e7b9166d8d6cd22453f14076ffa Mon Sep 17 00:00:00 2001 From: kyz Date: Tue, 21 May 2024 09:21:21 +0800 Subject: [PATCH] =?utf8?q?=E5=A2=9E=E5=8A=A0wifi=E4=B8=8B=E8=BD=BDhttp?= =?utf8?q?=E6=95=B0=E6=8D=AE=E6=97=B6=E6=9C=8D=E5=8A=A1=E5=99=A8=E5=9B=9E?= =?utf8?q?=E5=BA=94=E6=95=B0=E6=8D=AE=E5=88=86=E5=8C=85=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- user/user_eth.c | 4 ++-- user/user_ota.c | 2 +- user/user_wifi.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/user/user_eth.c b/user/user_eth.c index c0edecd..391a4b6 100644 --- a/user/user_eth.c +++ b/user/user_eth.c @@ -177,8 +177,8 @@ static err_t tcp_eth_recv(void *arg, struct tcp_pcb *tpcb, struct pbuf *p, err_t } }else if( client == &g_ota_client ){ //TODO: - extern int32_t ota_handle_http_resp_eth( uint8_t *rx_data, uint32_t rx_sz ); - ota_handle_http_resp_eth( p->payload, p->tot_len ); + extern int32_t ota_handle_http_resp_data( uint8_t *rx_data, uint32_t rx_sz ); + ota_handle_http_resp_data( p->payload, p->tot_len ); } #endif pbuf_free(p); diff --git a/user/user_ota.c b/user/user_ota.c index e55af5b..e353dad 100644 --- a/user/user_ota.c +++ b/user/user_ota.c @@ -165,7 +165,7 @@ int32_t ota_handle_http_resp( uint8_t *rx_data, uint32_t rx_sz ) } -int32_t ota_handle_http_resp_eth( uint8_t *rx_data, uint32_t rx_sz ) +int32_t ota_handle_http_resp_data( uint8_t *rx_data, uint32_t rx_sz ) { static uint8_t http_data[2048]; static uint32_t data_sz = 0; diff --git a/user/user_wifi.c b/user/user_wifi.c index ef3721a..cbcdb59 100644 --- a/user/user_wifi.c +++ b/user/user_wifi.c @@ -13,7 +13,7 @@ #define huart_wifi huart5 -extern int32_t ota_handle_http_resp( uint8_t *rx_data, uint32_t rx_sz ); +extern int32_t ota_handle_http_resp_data( uint8_t *rx_data, uint32_t rx_sz ); extern int32_t wifi_ota_start( char * url, char *ver ); extern char * devinfo_report_str( void ); @@ -350,7 +350,7 @@ static void tcp_rx_data_handle(void *arg, char *rspinfo, int rsplen) int n =at_read( (char*)(ota_rx_buf), len ); ota_rx_n = len; debug_printf( " ota recv data %d bytes, rd:%d, wifi buf:%d[%d..%d]\n", len, n, rx_buf_wr-rx_buf_rd, rx_buf_rd, rx_buf_wr ); - ota_handle_http_resp( ota_rx_buf, ota_rx_n ); + ota_handle_http_resp_data( ota_rx_buf, ota_rx_n ); } } return; -- 2.34.1