Fix Unrecognized relay with Echo Dot 2nd Gen

This commit is contained in:
Stephan Hadinger 2019-08-27 22:19:27 +02:00
parent f31b903fab
commit e14c560f51
1 changed files with 3 additions and 0 deletions

View File

@ -406,6 +406,9 @@ uint32_t findEchoGeneration(void) {
break;
}
}
if (0 == user_agent.length()) {
gen = 1; // if no user-agent, also revert to gen v1
}
AddLog_P2(LOG_LEVEL_DEBUG_MORE, D_LOG_HTTP D_HUE " User-Agent: %s, gen=%d", user_agent.c_str(), gen); // Header collection is set in xdrv_01_webserver.ino, in StartWebserver()