- shellwindow: add timeout

This commit is contained in:
svenhoefer
2014-09-11 21:57:18 +02:00
parent 0d236b39c1
commit caabe9707c

View File

@@ -191,9 +191,10 @@ CShellWindow::~CShellWindow()
neutrino_msg_t msg;
neutrino_msg_data_t data;
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings::TIMING_MENU]);
do
g_RCInput->getMsg(&msg, &data, 100);
while (msg != CRCInput::RC_ok && msg != CRCInput::RC_home);
g_RCInput->getMsgAbsoluteTimeout(&msg, &data, &timeoutEnd);
while (msg != CRCInput::RC_ok && msg != CRCInput::RC_home && msg != CRCInput::RC_timeout);
frameBuffer->Clear();
frameBuffer->blit();