diff --git a/src/driver/glcd/glcd.cpp b/src/driver/glcd/glcd.cpp index 49277133a..ffc865911 100644 --- a/src/driver/glcd/glcd.cpp +++ b/src/driver/glcd/glcd.cpp @@ -1203,6 +1203,12 @@ void cGLCD::Exit() } } +void cGLCD::Respawn() +{ + Exit(); + cGLCD::getInstance(); +} + void cGLCD::Rescan() { doRescan = true; diff --git a/src/driver/glcd/glcd.h b/src/driver/glcd/glcd.h index 210c39ec9..f17f86eab 100644 --- a/src/driver/glcd/glcd.h +++ b/src/driver/glcd/glcd.h @@ -223,6 +223,7 @@ class cGLCD static void ShowLcdIcon(bool); static void Resume(); static void Exit(); + static void Respawn(); static void Blit(); static void SetBrightness(unsigned int b); static void TogglePower();