From 7bda8747b283d62fe9a008bde5cafd8465655660 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 20 Nov 2022 13:59:17 +0800 Subject: [PATCH] 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 --- drivers/audio/wm8994.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/audio/wm8994.c b/drivers/audio/wm8994.c index 5f77f2e2b6..7e94d44a24 100644 --- a/drivers/audio/wm8994.c +++ b/drivers/audio/wm8994.c @@ -482,7 +482,7 @@ static void wm8994_setvolume(FAR struct wm8994_dev_s *priv, uint16_t volume, { leftlevel = volume; } - else if (priv->balance == b16ONE) + else if (priv->balance == (b16ONE - 1)) { leftlevel = 0; }