mirror of
https://github.com/skoelle/m5stack-dashboard.git
synced 2026-09-17 16:50:23 +00:00
encoding fix
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "home_screen.h"
|
||||
#include "../../include/text_utils.h"
|
||||
#include <M5Stack.h>
|
||||
#include "../../include/theme.h"
|
||||
#include "../icons/icons.h"
|
||||
@@ -75,7 +76,7 @@ void renderHomeScreen(bool forceRefresh) {
|
||||
M5.Lcd.setTextSize(2);
|
||||
M5.Lcd.setTextColor(Theme::TEXT_DIM, Theme::BG);
|
||||
M5.Lcd.setCursor(90, 65);
|
||||
M5.Lcd.print(lastWeather.current.description);
|
||||
M5.Lcd.print(sanitizeGermanText(lastWeather.current.description));
|
||||
|
||||
if (willRainSoon(lastWeather, 8)) {
|
||||
Icons::drawRainWarning(280, 30);
|
||||
@@ -106,7 +107,7 @@ void renderHomeScreen(bool forceRefresh) {
|
||||
M5.Lcd.setTextColor(Theme::TEXT, Theme::BG);
|
||||
M5.Lcd.setTextSize(2);
|
||||
M5.Lcd.setCursor(10, y);
|
||||
M5.Lcd.print(ev.summary.substring(0, 20));
|
||||
M5.Lcd.print(sanitizeGermanText(ev.summary.substring(0, 20)));
|
||||
|
||||
M5.Lcd.setTextColor(Theme::TEXT_DIM, Theme::BG);
|
||||
M5.Lcd.setTextSize(1);
|
||||
|
||||
Reference in New Issue
Block a user