Skip to content

Commit

Permalink
Fixed html filename
Browse files Browse the repository at this point in the history
  • Loading branch information
snakeye committed Apr 11, 2019
1 parent ce65e49 commit e71eae7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/WiFiConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const char mimePlain[] PROGMEM = "text/plain";

ConfigManager::ConfigManager()
{
this->setAPFilename("index.html");
this->setAPFilename("/index.html");
}

void ConfigManager::setAPName(const char *name)
Expand Down Expand Up @@ -104,7 +104,9 @@ void ConfigManager::handleGetRoot()
File f = SPIFFS.open(apFilename, "r");
if (!f)
{
Serial.println(F("file open failed"));
Serial.print(F("file "));
Serial.print(apFilename);
Serial.println(F(" open failed"));
server->send(404, FPSTR(mimeHTML), F("File not found"));
return;
}
Expand Down

0 comments on commit e71eae7

Please sign in to comment.