Merge branch 'cst-next' of git://coolstreamtech.de/cst-public-gui-neutrino into ni/cst-next

Origin commit data
------------------
Branch: ni/coolstream
Commit: d8170ad6cf
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-05-21 (Sat, 21 May 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-05-21 21:47:22 +02:00

View File

@@ -1048,6 +1048,11 @@ int CHDDMenuHandler::checkDevice(std::string dev)
int percent = 0, opercent = 0;
char buf[256] = { 0 };
bool loop;
uint64_t timeoutEnd;
neutrino_msg_t msg;
neutrino_msg_data_t data;
std::string devname = "/dev/" + dev;
printf("CHDDMenuHandler::checkDevice: dev %s\n", dev.c_str());
@@ -1117,7 +1122,16 @@ int CHDDMenuHandler::checkDevice(std::string dev)
progress->showGlobalStatus(100);
progress->showStatusMessageUTF(buf);
sleep(2);
timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings::TIMING_MENU]);
loop = true;
while (loop)
{
g_RCInput->getMsgAbsoluteTimeout(&msg, &data, &timeoutEnd);
if (msg == CRCInput::RC_timeout || msg == CRCInput::RC_ok || msg == CRCInput::RC_home)
loop = false;
}
progress->hide();
delete progress;