@@ -593,8 +593,7 @@ struct pbuf *stm32_new_data(struct pbuf *p, const uint8_t *buffer, size_t size)
593
593
594
594
if (q != NULL ) {
595
595
if (ERR_OK == pbuf_copy (q , p )) {
596
- err_t err = pbuf_take_at (q , (uint8_t * )buffer , size , p -> tot_len );
597
- if (ERR_OK == /*pbuf_take_at(q, (uint8_t *)buffer, size, p->tot_len)*/ err ) {
596
+ if (ERR_OK == pbuf_take_at (q , (uint8_t * )buffer , size , p -> tot_len )) {
598
597
pbuf_free (p );
599
598
p = q ;
600
599
return p ;
@@ -742,9 +741,6 @@ err_t tcp_connected_callback(void *arg, struct tcp_pcb *tpcb, err_t err)
742
741
/* initialize LwIP tcp_sent callback function */
743
742
tcp_sent (tpcb , tcp_sent_callback );
744
743
745
- /* initialize LwIP tcp_poll callback function */
746
- // tcp_poll(tpcb, tcp_poll_callback, 1);
747
-
748
744
/* initialize LwIP tcp_err callback function */
749
745
tcp_err (tpcb , tcp_err_callback );
750
746
@@ -814,9 +810,6 @@ err_t tcp_accept_callback(void *arg, struct tcp_pcb *newpcb, err_t err)
814
810
/* initialize LwIP tcp_sent callback function */
815
811
tcp_sent (newpcb , tcp_sent_callback );
816
812
817
- /* initialize lwip tcp_poll callback function for newpcb */
818
- // tcp_poll(newpcb, tcp_echoserver_poll, 0);
819
-
820
813
ret_err = ERR_OK ;
821
814
} else {
822
815
/* close tcp connection */
0 commit comments