Creation de la version V1.21
Version 1.21 -Correction d'un bug dans le calcul de l'adresse IP du Gateway -Ajout de la désactivation du log d'ingénierie dans le script de mise à jour -Correction d'un bug d'écriture dans un registre SEI -Ajout de la composition du train dans le fichier LOG -Suite au passage du train test, changement des CDV d'acquitement des alarmes à Montmorency. 12A -> (12A & 11A) et 22A -> (22A & 21B).
This commit is contained in:
Regular → Executable
+1
-1
@@ -194,7 +194,7 @@ void CModbusSEIMgr::ZTTKUpdated()
|
||||
}
|
||||
|
||||
//Send the data now to NetTrac
|
||||
SendWriteHoldingRegistersRequest(SEI_MODBUS_ZT_WATCHDOG_REG,SEI_MODBUS_ZT_TABLE_DATA_SIZE);
|
||||
SendWriteHoldingRegistersRequest(SEI_MODBUS_ZT_DATA_BASE_REG,SEI_MODBUS_ZT_TABLE_DATA_SIZE);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Regular → Executable
+5
-1
@@ -56,7 +56,11 @@ int CNetworkCfgMgr::SetTRCPNetworkAddress(QHostAddress Address)
|
||||
|
||||
QString ConfigText(TemplateFile->readAll());
|
||||
QString WorkString;
|
||||
QHostAddress Gateway(Address.toIPv4Address() & 0xFFFFFF01); //compute the gateway address xxx.xxx.xxx.1
|
||||
|
||||
//Compute the gateway address as xxx.xxx.xxx.1
|
||||
quint32 GatewayTemp = (Address.toIPv4Address() & 0xFFFFFF00);
|
||||
GatewayTemp |= 0x00000001;
|
||||
QHostAddress Gateway(GatewayTemp);
|
||||
|
||||
WorkString = ConfigText.replace("[TELETRANS_IP]",Address.toString());
|
||||
ConfigText = WorkString.replace("[TELETRANS_GATEWAY]",Gateway.toString());
|
||||
|
||||
Reference in New Issue
Block a user