From e711c374e3315fe457ca69bcc92e41e2bb0a4971 Mon Sep 17 00:00:00 2001 From: Ayush Sharma Date: Sun, 3 Dec 2023 15:28:44 +0530 Subject: [PATCH] Enable stats by default --- src/ESPDash.cpp | 2 +- src/ESPDash.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ESPDash.cpp b/src/ESPDash.cpp index aad71589..3ec1c348 100644 --- a/src/ESPDash.cpp +++ b/src/ESPDash.cpp @@ -24,7 +24,7 @@ struct ChartNames chartTags[] = { */ ESPDash::ESPDash(AsyncWebServer* server) { // Call other constructor with default uri - ESPDash(server, "/", false); + ESPDash(server, "/", true); } ESPDash::ESPDash(AsyncWebServer* server, bool enable_default_stats) { diff --git a/src/ESPDash.h b/src/ESPDash.h index c5078976..02f4b918 100644 --- a/src/ESPDash.h +++ b/src/ESPDash.h @@ -90,7 +90,7 @@ class ESPDash{ void refreshLayout(); public: - ESPDash(AsyncWebServer* server, const char* uri, bool enable_default_stats); + ESPDash(AsyncWebServer* server, const char* uri, bool enable_default_stats = true); ESPDash(AsyncWebServer* server, bool enable_default_stats); ESPDash(AsyncWebServer* server);