Browse Source

change: ch390h上电后有一个初始化时长,需要等一会才能稳定工作. 当前就设置在10ms吧

Wendal Chen 11 months ago
parent
commit
f1401b9286
1 changed files with 1 additions and 0 deletions
  1. 1 0
      components/network/netdrv/src/ch390h_task.c

+ 1 - 0
components/network/netdrv/src/ch390h_task.c

@@ -223,6 +223,7 @@ static int task_loop_one(ch390h_t* ch, luat_ch390h_cstring_t* cs) {
         if (check_vid_pid(ch)) {
             return 0;
         }
+        luat_rtos_task_sleep(10);
         // 读取MAC地址, 开始初始化
         luat_ch390h_read_mac(ch, buff);
         for (size_t i = 0; i < 6; i++)