fix: UWB anchor — filter POLL by destination ID (Issue #544)
Both anchors were responding to every POLL frame regardless of which anchor the tag addressed, causing RF collisions. Anchor 0 was consistently losing the collision, appearing completely silent. Add g_rx_buf[2] != ANCHOR_ID check so each anchor only responds to POLLs addressed to it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c297d24a48
commit
75b706c1dc
@ -393,6 +393,7 @@ static void twr_cycle(void) {
|
||||
|
||||
/* validate POLL */
|
||||
if (g_rx_buf[0] != FTYPE_POLL) return;
|
||||
if (g_rx_buf[2] != ANCHOR_ID) return; /* only respond to our ID */
|
||||
uint8_t tag_id = g_rx_buf[1];
|
||||
if (g_paired_tag_id != 0 && tag_id != g_paired_tag_id) return;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user