Fix Error: audio/wm8994.c:485:26: error: result of comparison of constant 65536 with expression of type 'uint16_t' (aka 'unsigned short') is always false

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-20 13:59:17 +08:00 committed by archer
parent 27629b74c9
commit 7bda8747b2
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ static void wm8994_setvolume(FAR struct wm8994_dev_s *priv, uint16_t volume,
{ {
leftlevel = volume; leftlevel = volume;
} }
else if (priv->balance == b16ONE) else if (priv->balance == (b16ONE - 1))
{ {
leftlevel = 0; leftlevel = 0;
} }