From c8bc287a298c31413be50ffae2237db4ba972196 Mon Sep 17 00:00:00 2001 From: okayserh Date: Sun, 10 Apr 2022 19:39:32 +0200 Subject: [PATCH] According to the help text, the balance command without value should display the current balance value. This patch adjusts the code accordingly. --- system/nxplayer/nxplayer_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/nxplayer/nxplayer_main.c b/system/nxplayer/nxplayer_main.c index 777dc3631..ef62d7f96 100644 --- a/system/nxplayer/nxplayer_main.c +++ b/system/nxplayer/nxplayer_main.c @@ -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 {