Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pw_bluetooth: Add CharacteristicPropertyBits operators
CharacteristicPropertyBits are normally combined with operator| when defining services that support multiple properties for the same characteristic, for example kRead and kWrite. This patch adds operator|, operator& and operator|= to help combine and compare these values without needing multiple static_cast<> statements. Change-Id: I5ee6407c1479c5a09848cb4ebe5a7c3406682461 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/122210 Reviewed-by: Ben Lawson <[email protected]> Commit-Queue: Alex Deymo <[email protected]>
- Loading branch information