Skip to content

Commit

Permalink
Enable stats by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushsharma82 committed Dec 3, 2023
1 parent cecbf90 commit e711c37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ESPDash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/ESPDash.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e711c37

Please sign in to comment.