Explorar o código

Update llm_contory.c

完善send中错误处理,避免进入hardfault
Zhao Puhan hai 6 meses
pai
achega
682f0d130f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      demo/llm_contory.c

+ 1 - 0
demo/llm_contory.c

@@ -59,6 +59,7 @@ static void send(int argc, char *argv[])
     if (llm_handle == RT_NULL)
     {
         rt_kprintf("llm_handle is null\n");
+        return;
     }
 
     rt_snprintf(prompt, sizeof(prompt), LED_PROMPT, argv[1]);