diff --git a/firmware/firmware.ino b/firmware/firmware.ino
index d99ac1d..49d08f2 100644
--- a/firmware/firmware.ino
+++ b/firmware/firmware.ino
@@ -88,10 +88,6 @@ void setup() {
Serial.begin(SERIAL_BAUD_RATE);
#endif
-#ifdef DEBUG_RESET_REASON
- debugResetReason();
-#endif
-
// Pin settings
pinMode(BAT_CHARGED_PIN, INPUT);
pinMode(BAT_CHARGING_PIN, INPUT);
@@ -121,6 +117,10 @@ void setup() {
//It's magic! leave in
delay(100);
+#ifdef DEBUG_RESET_REASON
+ debugResetReason();
+#endif
+
#ifdef BATTERY_POWERED
debug("battery powered");
diff --git a/firmware/webUpdater.ino b/firmware/webUpdater.ino
index 40d4d84..36cd83b 100644
--- a/firmware/webUpdater.ino
+++ b/firmware/webUpdater.ino
@@ -54,6 +54,9 @@ void setupWebUpdater(String device, String ip)
#ifdef DEBUG_WINDSPEED_MEASUREMENT
httpServer.on("/measWind", measureWindspeed);
#endif
+#ifdef WEB_RESET
+ httpServer.on("/resetESP", resetESP);
+#endif
#ifdef USE_LOGGER
httpServer.on("/showlog", showLog);
#endif
@@ -125,6 +128,9 @@ void showHTMLMain(void)
#ifdef HOMEBRIDGE_WEBSTAT
"
homebridge websatt
"
#endif
+#ifdef WEB_RESET
+ "
reset ESP
"
+#endif
#ifdef SHOW_SENSOR_DATA_ON_WEBUPDATER_MAIN_PAGE
"