Skip to content

Commit

Permalink
Add FlashHelper FPSTR() to HTML string to fix a crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbrechtL authored and scottchiefbaker committed Feb 26, 2021
1 parent c98c830 commit 99bf849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WebOTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ int WebOTA::add_http_routes(WebServer *server, const char *path) {
if (this->custom_html != NULL) {
html += this->custom_html;
} else {
html += ota_version_html;
html += FPSTR(ota_version_html);
}

html += ota_upload_form;
html += FPSTR(ota_upload_form);
server->send_P(200, "text/html", html.c_str());
});

Expand Down

0 comments on commit 99bf849

Please sign in to comment.