forked from espressif/esp-idf
bt/a2dp: fix incorrect return type
res was declared as “bool” so expression ((count == 0) ? A2D_SET_ONE_BIT : A2D_SET_MULTL_BIT) always evaluated to “true”, and was implicitly converted to A2D_SET_ONE_BIT.
This commit is contained in:
@@ -352,8 +352,8 @@ UINT8 A2D_SetTraceLevel (UINT8 new_level)
|
|||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
UINT8 A2D_BitsSet(UINT8 num)
|
UINT8 A2D_BitsSet(UINT8 num)
|
||||||
{
|
{
|
||||||
UINT8 count;
|
UINT8 count;
|
||||||
BOOLEAN res;
|
UINT8 res;
|
||||||
if (num == 0) {
|
if (num == 0) {
|
||||||
res = A2D_SET_ZERO_BIT;
|
res = A2D_SET_ZERO_BIT;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user