mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-18 02:38:24 +00:00
According to the help text, the balance command without value
should display the current balance value. This patch adjusts the code accordingly.
This commit is contained in:
parent
2f74de6f02
commit
c8bc287a29
1 changed files with 2 additions and 2 deletions
|
|
@ -466,11 +466,11 @@ static int nxplayer_cmd_balance(FAR struct nxplayer_s *pplayer, char *parg)
|
|||
{
|
||||
uint16_t percent;
|
||||
|
||||
/* If no arg given, then print current volume */
|
||||
/* If no arg given, then print current balance */
|
||||
|
||||
if (parg == NULL || *parg == '\0')
|
||||
{
|
||||
printf("balance: %d\n", pplayer->volume / 10);
|
||||
printf("balance: %d\n", pplayer->balance / 10);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue