Skip to content

Commit

Permalink
Fixed not working update server when on station mode
Browse files Browse the repository at this point in the history
  • Loading branch information
4m1g0 committed Jan 1, 2020
1 parent 5e8a6ad commit 635564a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/IotWebConf2/src/IotWebConf2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,11 @@ void IotWebConf2::stateChanged(byte oldState, byte newState)
IOTWEBCONF_DEBUG_LINE(F("Releasing forced AP mode."));
this->_forceDefaultPassword = false;
}

if (oldState == IOTWEBCONF_STATE_BOOT && this->_updateServer != NULL)
{
// We skiped AP mode so update server was never setup yet
this->_updateServer->setup(this->_server, this->_updatePath);
}
this->blinkInternal(1000, 50);
#ifdef IOTWEBCONF_DEBUG_TO_SERIAL
Serial.print("Connecting to [");
Expand Down

0 comments on commit 635564a

Please sign in to comment.