Start physical layer, if only master lib is available (e.g. in Szeged)
This commit is contained in:
		@@ -139,6 +139,11 @@ void ATBDeviceControllerPlugin::startPhysicalLayer()
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    qCritical() << "ATBDeviceControllerPlugin::startPhysicalLayer() " << endl
 | 
			
		||||
                << "     -> use master lib " << endl
 | 
			
		||||
                << "     -> start physical layer";
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    // open serial port
 | 
			
		||||
    hw->dc_openSerial(5, "115200", this->serialPortName, 1);
 | 
			
		||||
 | 
			
		||||
@@ -1318,6 +1323,10 @@ bool ATBDeviceControllerPlugin::private_loadCashAgentLib(QString pluginName)
 | 
			
		||||
 | 
			
		||||
    qCritical() << "ATBDeviceControllerPlugin: loaded CashAgentLib";
 | 
			
		||||
 | 
			
		||||
    if (this->isMaster) {
 | 
			
		||||
        QTimer::singleShot(500, this, &ATBDeviceControllerPlugin::startPhysicalLayer);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user