mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-02 12:49:03 +00:00
fixed nxplayer buffer length definition
This commit is contained in:
parent
63dd3547fd
commit
aa4249940d
1 changed files with 12 additions and 1 deletions
|
|
@ -48,6 +48,17 @@
|
|||
# define NXPLAYER_HELP_TEXT(x)
|
||||
#endif
|
||||
|
||||
/* Size of the command input buffer. Prefer the NSH line length when the
|
||||
* shell is enabled so behaviour matches other readline users, otherwise
|
||||
* fall back to a modest default.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_NSH_LINELEN
|
||||
# define NXPLAYER_LINELEN CONFIG_NSH_LINELEN
|
||||
#else
|
||||
# define NXPLAYER_LINELEN 80
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Type Declarations
|
||||
****************************************************************************/
|
||||
|
|
@ -737,7 +748,7 @@ static int nxplayer_cmd_help(FAR struct nxplayer_s *pplayer, char *parg)
|
|||
|
||||
int main(int argc, FAR char *argv[])
|
||||
{
|
||||
char buffer[CONFIG_NSH_LINELEN];
|
||||
char buffer[NXPLAYER_LINELEN];
|
||||
int len;
|
||||
int x;
|
||||
int running;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue