This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_BT_ASSERT_PANIC

Use k_panic() instead of k_oops()

Type: bool

Help

When CONFIG_BT_ASSERT is enabled, this option makes the code call
k_panic() instead of k_oops() when an assertion is triggered.

Direct dependencies

BT_ASSERT && BT_HCI && BT

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At subsys/bluetooth/common/Kconfig:256

Included via Kconfig:8Kconfig.zephyr:42subsys/Kconfig:9subsys/bluetooth/Kconfig:322

Menu path: (Top) → Sub Systems and OS Services → Bluetooth → Custom Bluetooth assert implementation

config BT_ASSERT_PANIC
    bool "Use k_panic() instead of k_oops()"
    depends on BT_ASSERT && BT_HCI && BT
    help
      When CONFIG_BT_ASSERT is enabled, this option makes the code call
      k_panic() instead of k_oops() when an assertion is triggered.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)