mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
fix(ble): added missed spin lock initialization
(cherry picked from commit 069262e513)
Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
This commit is contained in:
@@ -198,6 +198,7 @@ bool ble_log_lbm_init(void)
|
|||||||
/* Initialize lock types for spin pool */
|
/* Initialize lock types for spin pool */
|
||||||
for (int i = 0; i < BLE_LOG_LBM_SPIN_MAX; i++) {
|
for (int i = 0; i < BLE_LOG_LBM_SPIN_MAX; i++) {
|
||||||
lbm_ctx->spin_pool[i].lock_type = BLE_LOG_LBM_LOCK_SPIN;
|
lbm_ctx->spin_pool[i].lock_type = BLE_LOG_LBM_LOCK_SPIN;
|
||||||
|
portMUX_INITIALIZE(&(lbm_ctx->spin_pool[i].spin_lock));
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_BLE_LOG_LL_ENABLED
|
#if CONFIG_BLE_LOG_LL_ENABLED
|
||||||
|
|||||||
Reference in New Issue
Block a user