Start physical layer, if only master lib is available (e.g. in Szeged)

This commit is contained in:
Siegfried Siegert 2024-01-31 11:38:32 +01:00
parent d2efe566c5
commit 14755cd5b4
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -139,6 +139,11 @@ void ATBDeviceControllerPlugin::startPhysicalLayer()
return; return;
} }
qCritical() << "ATBDeviceControllerPlugin::startPhysicalLayer() " << endl
<< " -> use master lib " << endl
<< " -> start physical layer";
// open serial port // open serial port
hw->dc_openSerial(5, "115200", this->serialPortName, 1); hw->dc_openSerial(5, "115200", this->serialPortName, 1);
@ -1318,6 +1323,10 @@ bool ATBDeviceControllerPlugin::private_loadCashAgentLib(QString pluginName)
qCritical() << "ATBDeviceControllerPlugin: loaded CashAgentLib"; qCritical() << "ATBDeviceControllerPlugin: loaded CashAgentLib";
if (this->isMaster) {
QTimer::singleShot(500, this, &ATBDeviceControllerPlugin::startPhysicalLayer);
}
return true; return true;
} }