From 56942294822797088a4d49a6652e0e79604cb9d5 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Mon, 10 Jul 2023 21:47:51 +0200 Subject: [PATCH] Update WeatherSensor.h --- src/WeatherSensor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WeatherSensor.h b/src/WeatherSensor.h index cae6fde9..35c65f60 100644 --- a/src/WeatherSensor.h +++ b/src/WeatherSensor.h @@ -405,7 +405,7 @@ class WeatherSensor { int len2 = strlen(descr); int prefix_len = max(len1, len2); - memset(buf, " ", prefix_len); + memset(buf, ' ', prefix_len); buf[prefix_len] = '\0'; offs = (len1 < len2) ? (len2 - len 1) : 0; strcpy(&buf[offs], txt); @@ -416,7 +416,7 @@ class WeatherSensor { } log_v("%s", buf); - memset(buf, " ", prefix_len); + memset(buf, ' ', prefix_len); buf[prefix_len] ='\0'; offs = (len1 > len2) ? (len1 - len2) : 0; strcpy(&buf[offs], descr);