// Sanity check, make sure command exists first:
if (i == keycodes.end())
{
- std::string s = "Tried to send a non-existent command.\n";
- throw PIRException(s);
+ QMutexLocker cifLocker(&commandIFMutex);
+ commandInFlight = false;
+ return;
+// std::string s = "Tried to send a non-existent command.\n";
+// throw PIRException(s);
}
// Construct the object that communicates with the device driver:
// Have we been told to stop yet?
if (checkRepeatFlag())
{
+ break;
+/*
// Ok, then we can quit now:
++keypressCount;
QMutexLocker cifLocker(&commandIFMutex);
commandInFlight = false;
return;
+*/
}
++repeatCount;
}
+
+ ++keypressCount;
+ QMutexLocker cifLocker(&commandIFMutex);
+ commandInFlight = false;
}
catch (PIRException e)
{
emit commandFailed(e.getError().c_str());
}
-
- ++keypressCount;
- QMutexLocker cifLocker(&commandIFMutex);
- commandInFlight = false;
}
// Simply push the rest of the bits:
while (i != preData.end())
{
- pushBit(*i, rx51device);
+ duration += pushBit(*i, rx51device);
++i;
}
// Simply push the rest of the bits:
while (i != pkb.firstCode.end())
{
- pushBit(*i, rx51device);
+ duration += pushBit(*i, rx51device);
++i;
}