0
0
Fork 0

update(ssdp) add MAC to end of friendly name

This commit is contained in:
kerms 2024-07-15 10:31:05 +08:00
parent 22889936ab
commit 695a155646
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ int ssdp_get_friendly_name()
int ssdp_set_friendly_name(const char *name)
{
snprintf(ssdp_ctx.friendly_name, sizeof(ssdp_ctx.friendly_name),
"%s", name);
"%s-%02X-%02X", name, ssdp_ctx.uuid_end[1], ssdp_ctx.uuid_end[2]);
ssdp_ctx.friendly_name[sizeof(ssdp_ctx.friendly_name) - 1] = '\0';
return 0;
}