Add FlashHelper FPSTR() to HTML string to fix a crash.

This commit is contained in:
Albrecht Lohofener 2021-02-12 20:30:55 +01:00 committed by Scott Baker
parent c98c830c24
commit 99bf849d09

View File

@ -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());
});