Skip to content

Commit fbd0ddf

Browse files
committed
fix(ble): Add initialization of static members
1 parent 4eff7f9 commit fbd0ddf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

libraries/BLE/src/BLESecurity.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,20 @@
3535
* Common properties *
3636
***************************************************************************/
3737

38+
uint8_t BLESecurity::m_iocap = 0;
39+
uint8_t BLESecurity::m_authReq = 0;
40+
uint8_t BLESecurity::m_initKey = 0;
41+
uint8_t BLESecurity::m_respKey = 0;
3842
uint32_t BLESecurity::m_passkey = BLE_SM_DEFAULT_PASSKEY;
3943

44+
/***************************************************************************
45+
* Bluedroid properties *
46+
***************************************************************************/
47+
48+
#if defined(CONFIG_BLUEDROID_ENABLED)
49+
uint8_t BLESecurity::m_keySize = 16;
50+
#endif
51+
4052
/***************************************************************************
4153
* Common functions *
4254
***************************************************************************/

0 commit comments

Comments
 (0)