This is an automated email from the ASF dual-hosted git repository.
sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 1a947837d hw/mcu/native: Use BLE_SOCK_TYPE for socket type selection
1a947837d is described below
commit 1a947837db4bcafec60207b40eae5b9eba9bcfc3
Author: Szymon Janc <[email protected]>
AuthorDate: Mon Apr 20 13:44:20 2026 +0200
hw/mcu/native: Use BLE_SOCK_TYPE for socket type selection
Update to match latest nimble.
---
hw/mcu/native/src/hal_system.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/mcu/native/src/hal_system.c b/hw/mcu/native/src/hal_system.c
index a060a806f..d4fcb968f 100644
--- a/hw/mcu/native/src/hal_system.c
+++ b/hw/mcu/native/src/hal_system.c
@@ -28,7 +28,7 @@
#include "mcu/mcu_sim.h"
#include "hal_native_priv.h"
-#if MYNEWT_VAL(BLE_SOCK_USE_LINUX_BLUE)
+#if MYNEWT_VAL_CHOICE(BLE_SOCK_TYPE, linux_blue)
void ble_hci_sock_set_device(int dev);
#endif
@@ -132,7 +132,7 @@ mcu_sim_parse_args(int argc, char **argv)
hal_bsp_set_hw_id((uint8_t *)optarg, strlen(optarg));
break;
case 6:
-#if MYNEWT_VAL(BLE_SOCK_USE_LINUX_BLUE)
+#if MYNEWT_VAL_CHOICE(BLE_SOCK_TYPE, linux_blue)
ble_hci_sock_set_device(atoi(optarg));
#endif
break;