Skip to content

Commit

Permalink
Update WeatherSensor.h
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Jul 10, 2023
1 parent cd1c2f8 commit a092aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WeatherSensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a092aea

Please sign in to comment.