]> git.vomp.tv Git - vompclient.git/commitdiff
Process poweron and poweroff also in standby
authorMarten Richter <marten.richter@freenet.de>
Sat, 23 Nov 2013 17:57:13 +0000 (18:57 +0100)
committerMarten Richter <marten.richter@freenet.de>
Sat, 23 Nov 2013 17:57:13 +0000 (18:57 +0100)
command.cc

index ada68c6fa9e41f0598f01f8b8785a43af105808f..8288d2f6d526e00c31516e1a7f241463e6fab07b 100644 (file)
@@ -464,7 +464,8 @@ void Command::processMessage(Message* m)
 
 void Command::handleCommand(int button)
 {
-  if (isStandby && (button != Remote::POWER)) return;
+  if (isStandby && (button != Remote::POWER) 
+      && (button != Remote::POWERON) && (button != Remote::POWEROFF))  return;
   if (!connLost && boxstack->handleCommand(button)) return; // don't send to boxstack if connLost
 
   // command was not handled