瀏覽代碼

bug fix for tinyusb_port.c (#17)

tfx2001 3 年之前
父節點
當前提交
3a2276a0a7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rt-thread/tinyusb_port.c

+ 1 - 1
rt-thread/tinyusb_port.c

@@ -49,7 +49,7 @@ static int init_tinyusb(void)
     tid = &tusb_thread;
     result = rt_thread_init(tid, "tusb", tusb_thread_entry, RT_NULL,
                             tusb_stack, sizeof(tusb_stack), 4, 10);
-    if (tid != RT_EOK)
+    if (result != RT_EOK)
 #endif /* RT_USING_HEAP */
     {
         LOG_E("Fail to create TinyUSB thread");