mirror of
https://github.com/scottchiefbaker/ESP-WebOTA.git
synced 2024-08-30 18:12:33 +00:00
Style changes for consistency
Someone on #github suggested that I can send a PR to your branch... I've never done this before, let's see if it works.
This commit is contained in:
parent
2d9935fda4
commit
dfbaf8ef7f
@ -152,12 +152,9 @@ int WebOTA::add_http_routes(WebServer *server, const char *path) {
|
||||
// Upload firmware page
|
||||
server->on(path, HTTP_GET, [server,this]() {
|
||||
String html = "";
|
||||
if (this->custom_html != NULL)
|
||||
{
|
||||
if (this->custom_html != NULL) {
|
||||
html += this->custom_html;
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
html += ota_version_html;
|
||||
}
|
||||
|
||||
@ -223,8 +220,7 @@ void WebOTA::delay(unsigned int ms) {
|
||||
}
|
||||
}
|
||||
|
||||
void WebOTA::set_custom_html(char const * const html)
|
||||
{
|
||||
void WebOTA::set_custom_html(char const * const html) {
|
||||
this->custom_html = html;
|
||||
}
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user