Bluetooth: Mesh: Fix setting the right value for Static OOB type
The code was setting the wrong bit of the Static OOB Type when a static value has been provided. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
eb5d6fcef5
commit
f7654a787e
1 changed files with 1 additions and 1 deletions
|
@ -479,7 +479,7 @@ static void prov_invite(const u8_t *data)
|
|||
net_buf_simple_add_u8(buf, 0x00);
|
||||
|
||||
/* Static OOB Type */
|
||||
net_buf_simple_add_u8(buf, prov->static_val ? BIT(1) : 0x00);
|
||||
net_buf_simple_add_u8(buf, prov->static_val ? BIT(0) : 0x00);
|
||||
|
||||
/* Output OOB Size */
|
||||
net_buf_simple_add_u8(buf, prov->output_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue