From d1cf44b029e536767720bf4041f1d8db79631c56 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Mon, 10 Jul 2023 21:51:12 +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 35c65f60..85e66061 100644 --- a/src/WeatherSensor.h +++ b/src/WeatherSensor.h @@ -407,7 +407,7 @@ class WeatherSensor { memset(buf, ' ', prefix_len); buf[prefix_len] = '\0'; - offs = (len1 < len2) ? (len2 - len 1) : 0; + offs = (len1 < len2) ? (len2 - len1) : 0; strcpy(&buf[offs], txt); // Print byte index