Skip to content

Commit

Permalink
fix buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
softwarecrash committed Aug 20, 2023
1 parent 329010c commit cab3e1c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
platform = espressif8266
framework = arduino
monitor_speed = 115200
custom_prog_version = 2.8.3rc3
custom_prog_version = 2.8.3

build_flags =
-DVERSION=${this.custom_prog_version}
Expand Down
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,10 @@ void setup()
// set the device name
MDNS.addService("http", "tcp", 80);
if (MDNS.begin(_settings.data.deviceName))
{
DEBUG_PRINTLN(F("<SYS > mDNS running..."));
MDNS.update();
}
ws.onEvent(onEvent);
server.addHandler(&ws);
#ifdef isDEBUG
Expand Down Expand Up @@ -643,7 +645,7 @@ void loop()
}
if (restartNow && millis() >= (RestartTimer + 500))
{
DEBUG_PRINTLN(F("<SYS > Restart"));
DEBUG_PRINTLN("<SYS > Restart");
ESP.reset();
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ DALY2MQTT Project
#endif

#ifndef isDEBUG
#define DEBUG_SHOW_HTML "display: none;"
#define DEBUG_SHOW_HTML "display:none;"
#endif

#define ARDUINOJSON_USE_DOUBLE 0
Expand All @@ -36,7 +36,7 @@ DALY2MQTT Project
#define MYPORT_RX 2
#ifdef ESP01
#undef ESP01
#define ESP01 "display: none;"
#define ESP01 "display:none;"
#endif
#endif
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/webpages/HTML_SETTINGS.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h1>Settings</h1>
<a class="btn btn-primary" href="/settingsedit" role="button">Configure</a>
<a class="btn btn-warning" href="/reboot" role="button">Reboot</a>
<a class="btn btn-primary" href="/confirmreset" role="button">Reset ESP</a>
<a class="btn btn-primary" href="/webserial" role="button" target="_blank" style="%pre_debug_show%">WebSerial</a>
<a class="btn btn-primary" style=" %pre_debug_show% " href="/webserial" role="button" target="_blank">WebSerial</a>
<a class="btn btn-primary" href="/" role="button">Back</a>
</div>

Expand Down

0 comments on commit cab3e1c

Please sign in to comment.