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;
|
||||
|
|
|
@ -455,7 +455,7 @@ int bt_mesh_trans_send(struct bt_mesh_net_tx *tx, struct net_buf_simple *msg,
|
|||
}
|
||||
|
||||
if (msg->len > 11) {
|
||||
tx->ctx->send_rel = 1U;
|
||||
tx->ctx->send_rel = true;
|
||||
}
|
||||
|
||||
BT_DBG("net_idx 0x%04x app_idx 0x%04x dst 0x%04x", tx->sub->net_idx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue