mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-04-07 15:34:01 +00:00
Add VS2019 support.
This commit is contained in:
parent
fdbe0e0fb4
commit
68b81086a4
3 changed files with 11 additions and 3 deletions
|
|
@ -111,9 +111,9 @@ REMOTE_COMMAND CRemoteControl::getCommand()
|
|||
}
|
||||
|
||||
m_command = RCD_CONNECTION_STATUS;
|
||||
}
|
||||
else
|
||||
} else {
|
||||
replyStr = "KO";
|
||||
}
|
||||
|
||||
::snprintf(buffer, BUFFER_LENGTH * 2, "%s remote command of \"%s\" received", ((m_command == RCD_NONE) ? "Invalid" : "Valid"), command);
|
||||
if (m_command == RCD_NONE) {
|
||||
|
|
@ -123,7 +123,7 @@ REMOTE_COMMAND CRemoteControl::getCommand()
|
|||
LogMessage(buffer);
|
||||
}
|
||||
|
||||
m_socket.write((unsigned char*)replyStr.c_str(), replyStr.length(), address, addrlen);
|
||||
m_socket.write((unsigned char*)replyStr.c_str(), (unsigned int)replyStr.length(), address, addrlen);
|
||||
}
|
||||
|
||||
return m_command;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue