Kontrola, zda je zadany frame indexem.

This commit is contained in:
Pavel Brychta 2021-01-05 10:14:56 +01:00
parent 8d848fd28e
commit 22cd8ef1e0
2 changed files with 10 additions and 0 deletions

View File

@ -383,4 +383,13 @@ void OLEDUIPlus::setOnCb(oledon olon)
_oledon = olon;
}
bool OLEDUIPlus::isMainFrame(uint8_t idx)
{
bool retval = false;
if (idx == _mainFrame)
retval = true;
return retval;
}
OLEDUIPlus ui;

View File

@ -62,6 +62,7 @@ public:
bool isVisible(void);
void setOffCb(oledoff oloff);
void setOnCb(oledon olon);
bool isMainFrame(uint8_t idx);
#if defined(USE_OTA)
void OTAStart(void);