Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistently change device index to singed integer in BluetoothSerial lib #6109

Merged
merged 2 commits into from
Jan 17, 2022
Merged

Conversation

iltis42
Copy link
Contributor

@iltis42 iltis42 commented Jan 7, 2022

Summary

Change device index consistently for getCount() parameter list to signed integer type.

Impact

Get rid of compiler warning as below and get parameter check work that won't work with unsigned type:

BTScanResultsSet.cpp:67:8: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if (i < 0)
^
[ 83%] Linking C static library libarduino-esp32.a

Related links

This is related to discussion under:
#6091

As of wrong paramater, the following problem existed, that will be fixed now with this change.

BTScanResultsSet.cpp:67:8: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if (i < 0)
As of wrong paramater, the following problem existed, that will be fixed now with this change.

BTScanResultsSet.cpp:67:8: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if (i < 0)
@mrengineer7777
Copy link
Collaborator

Reviewed code changes. Looks good to me. Just need to wait for a maintainer to commit.

@me-no-dev
Copy link
Member

Thanks @iltis42 :)

@me-no-dev me-no-dev merged commit a0beb81 into espressif:master Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants