mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 13:55:15 +00: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:
parent
27629b74c9
commit
7bda8747b2
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue