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:
okayserh 2022-04-10 19:39:32 +02:00 committed by Xiang Xiao
parent 2f74de6f02
commit c8bc287a29

View File

@ -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
{