projects
/
pierogi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Search for Power Button Panel
[pierogi]
/
protocols
/
xmpprotocol.cpp
diff --git
a/protocols/xmpprotocol.cpp
b/protocols/xmpprotocol.cpp
index
096eb54
..
ce8ae9c
100644
(file)
--- a/
protocols/xmpprotocol.cpp
+++ b/
protocols/xmpprotocol.cpp
@@
-66,8
+66,11
@@
void XMPProtocol::startSendingCommand(
// Do we even have this key defined?
if (i == keycodes.end())
{
// Do we even have this key defined?
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 device:
}
// construct the device:
@@
-106,23
+109,26
@@
void XMPProtocol::startSendingCommand(
sleepUntilRepeat(commandDuration);
}
sleepUntilRepeat(commandDuration);
}
+ break;
+/*
QMutexLocker cifLocker(&commandIFMutex);
commandInFlight = false;
return;
QMutexLocker cifLocker(&commandIFMutex);
commandInFlight = false;
return;
+*/
}
}
++repeatCount;
}
}
}
++repeatCount;
}
+
+ QMutexLocker cifLocker(&commandIFMutex);
+ commandInFlight = false;
}
catch (PIRException e)
{
// inform the gui:
emit commandFailed(e.getError().c_str());
}
}
catch (PIRException e)
{
// inform the gui:
emit commandFailed(e.getError().c_str());
}
-
- QMutexLocker cifLocker(&commandIFMutex);
- commandInFlight = false;
}
}