Skip to content

Commit

Permalink
Add last byte of MAC to differentiate which earbud is which.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkra authored and ldab committed Oct 30, 2024
1 parent 60e9054 commit 981aff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/applications/lea_assistant/lea_assistant_ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ static void lea_assistant_ui_add_list_entry(lea_assistant_device_t *device)
lv_obj_add_flag(btn, LV_OBJ_FLAG_SCROLL_ON_FOCUS);

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

0 comments on commit 981aff6

Please sign in to comment.