nrf: ble_uart: Allow boards to choose the advertised name

v1.13-wasp-os
Daniel Thompson 2020-01-18 11:39:24 +00:00
parent 77f0aa8eae
commit f5d4f86b52
1 changed files with 4 additions and 0 deletions

View File

@ -245,7 +245,11 @@ void ble_uart_init0(void) {
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";
#endif
mp_obj_t service_list = mp_obj_new_list(0, NULL);
mp_obj_list_append(service_list, MP_OBJ_FROM_PTR(&ble_uart_service));