fix(ble): added c6 config check for ble light sleep

This commit is contained in:
cjin
2024-04-26 17:39:10 +08:00
committed by zwl
parent 842e3b13a2
commit b4ded34fd8
2 changed files with 5 additions and 1 deletions

View File

@@ -581,6 +581,9 @@ esp_err_t controller_sleep_init(void)
goto error;
}
#if CONFIG_FREERTOS_USE_TICKLESS_IDLE
#if CONFIG_BT_LE_SLEEP_ENABLE && !CONFIG_MAC_BB_PD
#error "CONFIG_MAC_BB_PD required for BLE light sleep to run properly"
#endif // CONFIG_BT_LE_SLEEP_ENABLE && !CONFIG_MAC_BB_PD
/* Create a new regdma link for BLE related register restoration */
rc = sleep_modem_ble_mac_modem_state_init(1);
assert(rc == 0);