hdd_menu: add key confirmation to hdd-check result

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

Origin message was:
------------------
- hdd_menu: add key confirmation to hdd-check result

------------------
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:42:27 +02:00
parent 131e086535
commit 95848d32b2

View File

@@ -1010,6 +1010,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());
@@ -1079,7 +1084,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;