فهرست منبع

Merge pull request #3191 from Lawlieta/develop

[components][finsh] fix compile error when the symbol table feature closed
Bernard Xiong 5 سال پیش
والد
کامیت
35e035b8b1
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      components/finsh/cmd.c

+ 1 - 1
components/finsh/cmd.c

@@ -887,7 +887,7 @@ long list(void)
             /* skip the internal command */
             if (strncmp((char *)index->name, "__", 2) == 0) continue;
 
-#ifdef FINSH_USING_DESCRIPTION
+#if defined(FINSH_USING_DESCRIPTION) && defined(FINSH_USING_SYMTAB)
             rt_kprintf("%-16s -- %s\n", index->name, index->desc);
 #else
             rt_kprintf("%s\n", index->name);