aboutsummaryrefslogtreecommitdiff
path: root/ports/nrf
diff options
context:
space:
mode:
authorGlenn Ruben Bakke2020-06-25 23:41:35 +0200
committerDamien George2020-07-01 22:50:56 +1000
commit5996bf72f134dd8f1b72ecd20757dcb1c98cfc89 (patch)
tree445a0cc39c13036cb00ec77bf963023e6f0b3c00 /ports/nrf
parentab0c14dba014d0ac27b8a5472bd795809a9be885 (diff)
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.
Diffstat (limited to 'ports/nrf')
-rw-r--r--ports/nrf/drivers/bluetooth/ble_uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/nrf/drivers/bluetooth/ble_uart.c b/ports/nrf/drivers/bluetooth/ble_uart.c
index 86cd08474..b2e79ba44 100644
--- a/ports/nrf/drivers/bluetooth/ble_uart.c
+++ b/ports/nrf/drivers/bluetooth/ble_uart.c
@@ -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));