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:
parent
27629b74c9
commit
7bda8747b2
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue