Use invokeMethod() on m_appControl-pointer to call getCurrentProgramMode().
This commit is contained in:
parent
dfba8e3807
commit
af72ad43a4
@ -512,11 +512,18 @@ int VMC::SendVersion(QString VersionString) {
|
|||||||
*/
|
*/
|
||||||
int VMC::SendCurrentState()
|
int VMC::SendCurrentState()
|
||||||
{
|
{
|
||||||
QByteArray message(QByteArray::fromHex("3E1132"));
|
QByteArray message(QByteArray::fromHex("3E1132"));
|
||||||
message.append(static_cast<char>(main->getCurrentProgramMode()));
|
|
||||||
SendMessage(message);
|
|
||||||
|
|
||||||
return 1;
|
PROGRAM_MODE currentMode;
|
||||||
|
if (QMetaObject::invokeMethod(m_appControl,
|
||||||
|
"getCurrentProgramMode",
|
||||||
|
Qt::DirectConnection,
|
||||||
|
Q_RETURN_ARG(PROGRAM_MODE, currentMode))) {
|
||||||
|
message.append(static_cast<char>(currentMode));
|
||||||
|
SendMessage(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Send lic plate String to VMC
|
/* Send lic plate String to VMC
|
||||||
|
Loading…
Reference in New Issue
Block a user