Bluetooth: Change from bitfields to normal types
Since the bt_mesh_msg_ctx struct no longer has a size that is a multiple of 2, the bitfields might as well be made to normal types as this will minimize the code generated to access them. Signed-off-by: Tobias Svehagen <tobias.svehagen@gmail.com>
This commit is contained in:
parent
4866fa9e58
commit
1c84d7c5eb
2 changed files with 3 additions and 3 deletions
|
@ -141,10 +141,10 @@ struct bt_mesh_msg_ctx {
|
|||
s8_t recv_rssi;
|
||||
|
||||
/** Received TTL value. Not used for sending. */
|
||||
u8_t recv_ttl:7;
|
||||
u8_t recv_ttl;
|
||||
|
||||
/** Force sending reliably by using segment acknowledgement */
|
||||
u8_t send_rel:1;
|
||||
bool send_rel;
|
||||
|
||||
/** TTL, or BT_MESH_TTL_DEFAULT for default TTL. */
|
||||
u8_t send_ttl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue