Sfoglia il codice sorgente

change: iperf,创建iperf,直接返回true就好了,反正只是测试用

Wendal Chen 3 mesi fa
parent
commit
3a66e3dfac
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      components/network/iperf/binding/luat_lib_iperf.c

+ 1 - 1
components/network/iperf/binding/luat_lib_iperf.c

@@ -108,7 +108,7 @@ static int start_gogogo(iperf_start_ctx_t* ctx) {
         ctx->remote_ip = drv->netif->ip_addr;
     }
     tcpip_callback_with_block(iperf_start_cb, ctx, 1);
-    return iperf_session != NULL;
+    return 1; // 总是成功的
 }
 
 /*