Fix issue where nvs was not getting reset with rollingCodes from backup file.

This commit is contained in:
Robert Strouse 2023-07-20 20:10:43 -07:00
parent 7f4cc19914
commit d471745489
13 changed files with 280 additions and 109 deletions

View file

@ -54,6 +54,10 @@ void Network::loop() {
this->emitSockets();
if(!this->connected()) return;
}
if(this->connected() && millis() - this->lastMDNS > 60000) {
if(this->lastMDNS != 0) MDNS.setInstanceName(settings.hostname);
this->lastMDNS = millis();
}
sockEmit.loop();
if(settings.ssdpBroadcast) {
if(!SSDP.isStarted) SSDP.begin();