We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c81e2ff commit 098df08Copy full SHA for 098df08
drivers/bluetooth/hci/hci_stm32wba.c
@@ -21,8 +21,7 @@
21
#include "blestack.h"
22
#include "app_conf.h"
23
#include "ll_sys.h"
24
-/* TODO: Enable Flash Manager once available */
25
-/* #include "flash_driver.h" */
+#include "flash_driver.h"
26
27
#define LOG_LEVEL CONFIG_BT_HCI_DRIVER_LOG_LEVEL
28
#include <zephyr/logging/log.h>
@@ -360,7 +359,9 @@ static int bt_hci_stm32wba_open(void)
360
359
ret = bt_ble_ctlr_init();
361
362
/* TODO. Enable Flash manager once available */
363
- /* FD_SetStatus(FD_FLASHACCESS_RFTS_BYPASS, LL_FLASH_DISABLE); */
+ if (IS_ENABLED(CONFIG_FLASH)) {
+ FD_SetStatus(FD_FLASHACCESS_RFTS_BYPASS, LL_FLASH_DISABLE);
364
+ }
365
366
return ret;
367
}
0 commit comments