unify advertised name for mDNS and USB, update configuration settings, and enhance setup tool prompts.

This commit is contained in:
PhosphorosVR
2025-09-06 16:25:21 +02:00
parent 8138ffa36d
commit ad7b9b8be9
8 changed files with 110 additions and 55 deletions

View File

@@ -103,9 +103,13 @@ struct MDNSConfig_t : BaseConfigModel
void load()
{
// by default, this will be openiris
// but we can override it at compile time
std::string default_hostname = CONFIG_WIFI_MDNS_HOSTNAME;
// Default hostname comes from GENERAL_ADVERTISED_NAME (unified advertised name)
std::string default_hostname =
#ifdef CONFIG_GENERAL_ADVERTISED_NAME
CONFIG_GENERAL_ADVERTISED_NAME;
#else
"openiristracker";
#endif
if (default_hostname.empty())
{