nrf/bluetooth/ble_uart: Fix random advertisement name.

The storage space of the advertisement name is not declared static, leading
to a random advertisement name.  This commit fixes the issue by declaring
it static.
This commit is contained in:
Glenn Ruben Bakke 2020-06-25 23:41:35 +02:00 committed by Damien George
parent ab0c14dba0
commit 5996bf72f1

View File

@ -228,7 +228,7 @@ void ble_uart_init0(void) {
ble_uart_peripheral.conn_handle = 0xFFFF;
char device_name[] = "mpus";
static char device_name[] = "mpus";
mp_obj_t service_list = mp_obj_new_list(0, NULL);
mp_obj_list_append(service_list, MP_OBJ_FROM_PTR(&ble_uart_service));