mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user