From c1a683b351bef972ca2ed3a5ceeea9554c79b36f Mon Sep 17 00:00:00 2001 From: taks <857tn859@gmail.com> Date: Wed, 8 Nov 2023 11:16:11 +0900 Subject: [PATCH] Fix typo --- src/ble_security.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ble_security.rs b/src/ble_security.rs index 2f31c04..9923bd6 100644 --- a/src/ble_security.rs +++ b/src/ble_security.rs @@ -41,7 +41,7 @@ impl BLESecurity { /// Set the keys we are willing to accept during pairing. pub fn set_security_resp_key(&mut self, resp_key: enums::PairKeyDist) -> &mut Self { - unsafe { esp_idf_sys::ble_hs_cfg.sm_their_key_dist = init_key.bits() }; + unsafe { esp_idf_sys::ble_hs_cfg.sm_their_key_dist = resp_key.bits() }; self } }