You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "szymon-czapracki (via GitHub)" <gi...@apache.org> on 2024/10/31 13:30:39 UTC
[PR] Fix condition in address recognition [mynewt-nimble]
szymon-czapracki opened a new pull request, #1906:
URL: https://github.com/apache/mynewt-nimble/pull/1906
This commit fixes logic for address
recognition in add_source operation
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix condition in address recognition [mynewt-nimble]
Posted by "sjanc (via GitHub)" <gi...@apache.org>.
sjanc commented on code in PR #1906:
URL: https://github.com/apache/mynewt-nimble/pull/1906#discussion_r1824722084
##########
nimble/host/audio/services/bass/src/ble_audio_svc_bass.c:
##########
@@ -307,8 +307,9 @@ ble_svc_audio_bass_add_source(uint8_t *data, uint16_t data_len, uint16_t conn_ha
operation.conn_handle = conn_handle;
operation.add_source.adv_addr.type = data[offset++];
- if (operation.add_source.adv_addr.type != BLE_ADDR_PUBLIC ||
- operation.add_source.adv_addr.type != BLE_ADDR_RANDOM) {
+
+ if (!(operation.add_source.adv_addr.type != BLE_ADDR_PUBLIC ||
Review Comment:
so what is the intention here? which address types are allowed? 0x00 and 0x01?
Asking cause this check looks rather unorthodox...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix condition in address recognition [mynewt-nimble]
Posted by "sjanc (via GitHub)" <gi...@apache.org>.
sjanc merged PR #1906:
URL: https://github.com/apache/mynewt-nimble/pull/1906
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org