Merge remote-tracking branch 'origin/weather-usermod' into mdev

This commit is contained in:
Ewowi
2022-10-16 11:02:29 +02:00

View File

@@ -54,8 +54,8 @@ uint16_t mode_2DWeather(void) {
// Serial.print(" temp ");
char tempString[5] = "";
sprintf(tempString, "%5.2f", currentTemp);
char tempString[6] = { '\0' }; // initialize string with zeros
snprintf(tempString, 5, "%5.2f", currentTemp); // snprintf will prevent overflow
// Serial.println();
CRGB color = ColorFromPalette(SEGPALETTE, map((uint8_t)currentTemp, 0, 40, 0, 255), 255, LINEARBLEND);