Skip to content

Commit

Permalink
Add CONFIG_DRIVERS_BLUETOOTH=y, so 'bt_driver_register_with_id' can b…
Browse files Browse the repository at this point in the history
…e linked, bt_driver_register not triggr error.

Signed-off-by: chengkai <[email protected]>
  • Loading branch information
chengkai15 committed Oct 16, 2024
1 parent 42ab43f commit eb5302c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions boards/arm/nrf53/nrf5340-dk/configs/sdc_cpunet/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ CONFIG_TASK_NAME_SIZE=0
CONFIG_UART0_SERIAL_CONSOLE=y
CONFIG_WIRELESS=y
CONFIG_WIRELESS_BLUETOOTH=y
CONFIG_DRIVERS_BLUETOOTH=y
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@ CONFIG_TASK_NAME_SIZE=0
CONFIG_UART0_SERIAL_CONSOLE=y
CONFIG_WIRELESS=y
CONFIG_WIRELESS_BLUETOOTH=y
CONFIG_DRIVERS_BLUETOOTH=y
1 change: 0 additions & 1 deletion drivers/wireless/bluetooth/bt_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ static int bt_driver_register_internal(FAR struct bt_driver_s *driver,
#elif defined(CONFIG_NET_BLUETOOTH)
return bt_netdev_register(driver);
#else
# error "Please select CONFIG_UART_BTH4 or CONFIG_NET_BLUETOOTH"
#endif
}

Expand Down

0 comments on commit eb5302c

Please sign in to comment.