Got WiresX bug, release bump!

pull/1/head
Tom Early 5 years ago
parent ee8c1b35df
commit 1ac8348363

@ -96,7 +96,6 @@ bool CProtocol::Initialize(const char *type, const uint16 port, const bool has_i
} }
#endif #endif
std::cout << "Initializing protocol on port " << port << std::endl;
try { try {
m_Future = std::async(std::launch::async, &CProtocol::Thread, this); m_Future = std::async(std::launch::async, &CProtocol::Thread, this);
} }
@ -108,7 +107,7 @@ bool CProtocol::Initialize(const char *type, const uint16 port, const bool has_i
return false; return false;
} }
// done std::cout << "Initialized " << (type ? type : "DMR") << " protocol on port " << port << std::endl;
return true; return true;
} }

@ -74,7 +74,6 @@ bool CWiresxCmdHandler::Init(void)
// reset stop flag // reset stop flag
keep_running = true; keep_running = true;
std::cout << "==============> Launching WiresX Command Handler" << std::endl;
try try
{ {
m_Future = std::async(std::launch::async, &CWiresxCmdHandler::Thread, this); m_Future = std::async(std::launch::async, &CWiresxCmdHandler::Thread, this);
@ -104,12 +103,10 @@ void CWiresxCmdHandler::Close(void)
void CWiresxCmdHandler::Thread() void CWiresxCmdHandler::Thread()
{ {
std::cout << "*********Starting WiresX Command Handler*********" << std:: endl;
while (keep_running) while (keep_running)
{ {
Task(); Task();
} }
std::cout << "*********WiresX Command Handler has stopped*********" << std::endl;
} }
//////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////

@ -181,7 +181,7 @@ void CYsfProtocol::Task(void)
} }
else if ( IsValidwirexPacket(Buffer, &Fich, &Callsign, &iWiresxCmd, &iWiresxArg) ) else if ( IsValidwirexPacket(Buffer, &Fich, &Callsign, &iWiresxCmd, &iWiresxArg) )
{ {
std::cout << "Got a WiresX command from " << Callsign << " at " << Ip << " cmd=" <<iWiresxCmd << " arg=" << iWiresxArg << std::endl; // std::cout << "Got a WiresX command from " << Callsign << " at " << Ip << " cmd=" <<iWiresxCmd << " arg=" << iWiresxArg << std::endl;
WiresxCmd = CWiresxCmd(Ip, Callsign, iWiresxCmd, iWiresxArg); WiresxCmd = CWiresxCmd(Ip, Callsign, iWiresxCmd, iWiresxArg);
// and post it to hadler's queue // and post it to hadler's queue
m_WiresxCmdHandler.GetCmdQueue()->push(WiresxCmd); m_WiresxCmdHandler.GetCmdQueue()->push(WiresxCmd);

@ -66,7 +66,7 @@
#define VERSION_MAJOR 2 #define VERSION_MAJOR 2
#define VERSION_MINOR 4 #define VERSION_MINOR 4
#define VERSION_REVISION 27 #define VERSION_REVISION 28
// global ------------------------------------------------------ // global ------------------------------------------------------

Loading…
Cancel
Save

Powered by TurnKey Linux.