From a092aeaa6743840744f381a685b2a61ea07ecedd Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Mon, 10 Jul 2023 23:12:03 +0200 Subject: [PATCH] Update WeatherSensor.h --- src/WeatherSensor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WeatherSensor.h b/src/WeatherSensor.h index b9620f35..7f3a49e7 100644 --- a/src/WeatherSensor.h +++ b/src/WeatherSensor.h @@ -402,7 +402,7 @@ class WeatherSensor { const char txt[] = "Byte #: "; int offs; int len1 = strlen(txt); - int len2 = strlen(descr); + int len2 = strlen(descr) + 2; // add colon and space int prefix_len = max(len1, len2); memset(buf, ' ', prefix_len);