add some defaults to a couple of switches around security modes.
This commit is contained in:
parent
bc99c5488f
commit
256f8f8927
1 changed files with 4 additions and 0 deletions
|
@ -261,6 +261,8 @@ error_t custom_add_in_characteristic(uint16_t service_handle,
|
|||
case Gap::SECURITY_MODE_SIGNED_WITH_MITM :
|
||||
BLE_GAP_CONN_SEC_MODE_SET_SIGNED_WITH_MITM(&attr_md.read_perm);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -281,6 +283,8 @@ error_t custom_add_in_characteristic(uint16_t service_handle,
|
|||
case Gap::SECURITY_MODE_SIGNED_WITH_MITM :
|
||||
BLE_GAP_CONN_SEC_MODE_SET_SIGNED_WITH_MITM(&attr_md.write_perm);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue