From 47202971d39510e585c944079bc8eef13a7eb6d0 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 26 Jun 2020 01:59:37 +0200 Subject: [PATCH] glcd: add respawn function Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/340d8423b7969cc5ae08930752c7ced86d77cd9a Author: vanhofen Date: 2020-06-26 (Fri, 26 Jun 2020) Origin message was: ------------------ - glcd: add respawn function ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/glcd/glcd.cpp | 6 ++++++ src/driver/glcd/glcd.h | 1 + 2 files changed, 7 insertions(+) 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();