fix segfault from - glcd: fix warning: statement is a reference, not call

This commit is contained in:
TangoCash
2022-11-21 19:26:38 +01:00
committed by Thilo Graf
parent 19b060a88d
commit a88d114591
3 changed files with 2 additions and 7 deletions

View File

@@ -137,7 +137,6 @@ cGLCD::cGLCD()
InitAnalogClock(); InitAnalogClock();
InitDigitalClock(); InitDigitalClock();
InitSimpleClock(); InitSimpleClock();
InitWeather();
Update(); Update();
} }
@@ -653,6 +652,8 @@ void cGLCD::updateFonts()
} }
} }
WeatherUpdateFonts();
fonts_initialized = true; fonts_initialized = true;
} }

View File

@@ -51,11 +51,6 @@ int weather_fontsize;
int standby_weather_percent; int standby_weather_percent;
int standby_weather_fontsize; int standby_weather_fontsize;
void InitWeather()
{
WeatherUpdateFonts();
}
void WeatherUpdateFonts() void WeatherUpdateFonts()
{ {
cGLCD *cglcd = cGLCD::getInstance(); cGLCD *cglcd = cGLCD::getInstance();

View File

@@ -28,7 +28,6 @@
#pragma GCC diagnostic warning "-Wunused-parameter" #pragma GCC diagnostic warning "-Wunused-parameter"
#include "glcd.h" #include "glcd.h"
void InitWeather();
void WeatherUpdateFonts(); void WeatherUpdateFonts();
void RenderWeather(int cx, int cy, int nx, int ny, bool standby); void RenderWeather(int cx, int cy, int nx, int ny, bool standby);
void ShowWeather(bool standby); void ShowWeather(bool standby);