From 380f86cda1b7ca85621a51dc02109d3bd11ef709 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Sat, 25 Mar 2023 20:42:22 +0100 Subject: [PATCH] Add missing argument for devicename --- src/web/web.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/web.h b/src/web/web.h index 7612b6b9..a7e455b3 100644 --- a/src/web/web.h +++ b/src/web/web.h @@ -686,7 +686,7 @@ class Web { metrics += String(type) + String(topic); snprintf(type,sizeof(type),"# TYPE ahoy_solar_uptime counter\n"); - snprintf(topic,sizeof(topic),"ahoy_solar_uptime{devicename=\"%s\"} %u\n", mApp->getUptime()); + snprintf(topic,sizeof(topic),"ahoy_solar_uptime{devicename=\"%s\"} %u\n", mConfig->sys.deviceName, mApp->getUptime()); metrics += String(type) + String(topic); // NRF Statistics