nrf: ble_uart: Allow boards to choose the advertised name
parent
77f0aa8eae
commit
f5d4f86b52
|
@ -245,7 +245,11 @@ void ble_uart_init0(void) {
|
||||||
|
|
||||||
ble_uart_peripheral.conn_handle = 0xFFFF;
|
ble_uart_peripheral.conn_handle = 0xFFFF;
|
||||||
|
|
||||||
|
#ifdef MICROPY_HW_NUS_NAME
|
||||||
|
static char device_name[] = MICROPY_HW_NUS_NAME;
|
||||||
|
#else
|
||||||
static char device_name[] = "mpus";
|
static char device_name[] = "mpus";
|
||||||
|
#endif
|
||||||
|
|
||||||
mp_obj_t service_list = mp_obj_new_list(0, NULL);
|
mp_obj_t service_list = mp_obj_new_list(0, NULL);
|
||||||
mp_obj_list_append(service_list, MP_OBJ_FROM_PTR(&ble_uart_service));
|
mp_obj_list_append(service_list, MP_OBJ_FROM_PTR(&ble_uart_service));
|
||||||
|
|
Loading…
Reference in New Issue