Skip to content

Commit

Permalink
Hop count: increase number of bits
Browse files Browse the repository at this point in the history
Hop counts is now on 6 bits instead of 4
  • Loading branch information
GwendalRaoul committed Jan 7, 2020
1 parent 3139c01 commit d62f0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wpc/dsap.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ void dsap_data_rx_indication_handler(dsap_data_rx_ind_pl_t * payload,
}

// Get the number of hops
hop_count = (payload->qos_hop_count & 0x3c) >> 2;
hop_count = payload->qos_hop_count >> 2;

// Someone is registered on this endpoint
data_cb_table[payload->dest_endpoint](payload->apdu,
Expand Down

0 comments on commit d62f0da

Please sign in to comment.