Browse Source

add: ch390任务开启前增加30ms延时,等待ch390芯片自身启动

zengshuai 7 months ago
parent
commit
8c21c7b786
1 changed files with 2 additions and 0 deletions
  1. 2 0
      components/network/netdrv/src/ch390h_task.c

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

@@ -464,6 +464,8 @@ static void ch390_task_main(void* args) {
     (void)args;
     int ret = 0;
     uint32_t count = 0;
+    // 延时30ms,等待CH390H芯片完全启动,避免直接初始化导致异常
+    luat_rtos_task_sleep(30);
     while (1) {
         count ++;
         if (count % 10 == 0) {