From 44dc23051fe2fbab5c63a0035c4a9916960eb8d7 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 18 Jan 2021 10:42:32 +0100 Subject: [PATCH] [Bugfix] Make sure we can respond something to Prometheus if no sensors are present --- WeatherStation.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WeatherStation.ino b/WeatherStation.ino index 7a64154..7e51758 100644 --- a/WeatherStation.ino +++ b/WeatherStation.ino @@ -109,7 +109,7 @@ send_metrics() 1; char message[message_size]; - snprintf(message, message_size, + snprintf(message, message_size, "" #if defined(DHT_TYPE) || defined(HAVE_BMP180) "# HELP temperature_celsius Temperature in degrees Celsius\n" "# TYPE temperature_celsius gauge\n"