From 8a945a8f76385fd78dc0b75a79baa31a49f7b927 Mon Sep 17 00:00:00 2001 From: Marten Richter Date: Sat, 23 Nov 2013 18:57:13 +0100 Subject: [PATCH] Process poweron and poweroff also in standby --- command.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/command.cc b/command.cc index ada68c6..8288d2f 100644 --- a/command.cc +++ b/command.cc @@ -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 -- 2.39.5