Oprava rozsveceni displeje

This commit is contained in:
Pavel Brychta 2021-06-27 13:35:06 +02:00
parent 6d01e70592
commit 0106c9ca33

View File

@ -311,8 +311,14 @@ int OLEDUIPlus::extendOn(void)
if (false == _displayon) { if (false == _displayon) {
if (_oledon != nullptr) if (_oledon != nullptr)
_oledon(); _oledon();
if (_haveOnOffOverlay) if (_haveOnOffOverlay) {
startAnim(1); startAnim(1);
} else {
#if defined(OLED_REAL_OFF)
_oled->displayOn();
#endif
_displayon = true;
}
retval = 1; // musime rozsvitit displej retval = 1; // musime rozsvitit displej
} }
} }