From 0106c9ca3378ef5b1a1667f5b463b9d7a26e24d6 Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Sun, 27 Jun 2021 13:35:06 +0200 Subject: [PATCH] Oprava rozsveceni displeje --- src/OLEDUIPlus.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/OLEDUIPlus.cpp b/src/OLEDUIPlus.cpp index 5e4d644..6b1b0d5 100644 --- a/src/OLEDUIPlus.cpp +++ b/src/OLEDUIPlus.cpp @@ -311,8 +311,14 @@ int OLEDUIPlus::extendOn(void) if (false == _displayon) { if (_oledon != nullptr) _oledon(); - if (_haveOnOffOverlay) + if (_haveOnOffOverlay) { startAnim(1); + } else { +#if defined(OLED_REAL_OFF) + _oled->displayOn(); +#endif + _displayon = true; + } retval = 1; // musime rozsvitit displej } }