Skip to content

Commit 7d4d357

Browse files
committed
Change pairing name
1 parent 0b7aa84 commit 7d4d357

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/bootloader/bootloader.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ static void _render_message(const char* message, int duration)
301301
delay_ms(duration);
302302
}
303303

304+
#define DEVICE_NAME_PREFIX "Pairing: "
305+
304306
void bootloader_render_default_screen(void)
305307
{
306308
UG_ClearBuffer();
@@ -309,8 +311,8 @@ void bootloader_render_default_screen(void)
309311
if (communication_mode_ble_enabled() &&
310312
da14531_connected_state < DA14531_CONNECTED_CONNECTED_SECURED) {
311313
UG_PutString(0, SCREEN_HEIGHT - 9 * 2 - 5, "See the BitBoxApp", false);
312-
char buf[MEMORY_DEVICE_NAME_MAX_LEN] = {0};
313-
memory_random_name(buf);
314+
char buf[MEMORY_DEVICE_NAME_MAX_LEN + sizeof(DEVICE_NAME_PREFIX)] = DEVICE_NAME_PREFIX;
315+
memory_random_name(&buf[sizeof(DEVICE_NAME_PREFIX) - 1]);
314316
UG_PutString(0, SCREEN_HEIGHT - 9, buf, false);
315317
} else {
316318
if (_is_app_flash_empty) {

src/memory/memory_shared.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ void memory_random_name(char* name_out)
242242
snprintf(
243243
cached_name,
244244
MEMORY_DEVICE_NAME_MAX_LEN,
245-
"BitBox %c%c%c%c",
245+
"Nova %c%c%c%c",
246246
letters[0],
247247
letters[1],
248248
letters[2],

0 commit comments

Comments
 (0)