Loggytronic Forum

VOMP => VOMP for Raspberry Pi => Topic started by: davep on September 12, 2012, 08:11:25

Title: Small bugfix
Post by: davep on September 12, 2012, 08:11:25
If I try to exit the vompclient by pressing the '7' key from the main menu (rather than by using the up/down and OK keys), the client shows a 'connection lost' box and the keyboard locks. This is the fix:


diff --git a/vwelcome.cc b/vwelcome.cc
index cb88da6..dad013a 100644
--- a/vwelcome.cc
+++ b/vwelcome.cc
@@ -189,6 +189,7 @@ int VWelcome::handleCommand(int command)
     case Remote::SEVEN:
     {
       Command::getInstance()->doReboot();
+      return 2;
     }
     case Remote::OK:
     {


Presumably the MVP never returned from doReboot(), but the RPi version does, and it then falls into the next part of the case statement.
Title: Re: Small bugfix
Post by: MartenR on September 13, 2012, 07:23:44
thanks, will be in git in a minute.

Marten