Merge pull request #3191 from Lawlieta/develop

[components][finsh] fix compile error when the symbol table feature closed
This commit is contained in:
Bernard Xiong 2019-11-11 16:15:47 +08:00 committed by GitHub
commit 35e035b8b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);