Skip to content

Commit ba84908

Browse files
committed
Add last byte of MAC to differentiate which earbud is which.
1 parent fe43b3b commit ba84908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/applications/lea_assistant/lea_assistant_ui.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ static void lea_assistant_ui_add_list_entry(lea_assistant_device_t *device)
154154
lv_obj_add_flag(btn, LV_OBJ_FLAG_SCROLL_ON_FOCUS);
155155

156156
lv_obj_t *title = lv_label_create(btn);
157-
lv_label_set_text_static(title, device->name);
157+
lv_label_set_text_fmt(title, "%s-%02X", device->name, device->addr.a.val[0]);
158158
lv_obj_set_size(title, LV_SIZE_CONTENT, LV_SIZE_CONTENT);
159159
lv_obj_align(title, LV_ALIGN_LEFT_MID, 0, 0);
160160
lv_obj_set_style_text_font(title, &lv_font_montserrat_16, 0);

0 commit comments

Comments
 (0)