-Correction du fichier ZT.cfg pour qu'il fonctionne mieux sur le proto
-Ajout du paramètre -version pour imprimer la version de la ZT
This commit is contained in:
jfmartel
2017-09-26 14:44:07 -04:00
parent 626645c382
commit 9fcceea4f0
3 changed files with 13 additions and 6 deletions
+2 -2
View File
@@ -233,8 +233,8 @@ int CModbusBackend::AnalyzeModbusRequest(CModbusTransaction Transaction)
//Write register data
mModbusRepo->WriteHRData(StartAdress,NbRegisters,data);
qDebug("\nSlave Rx Write Multiple Registers. Address: %d, Nb Reg: %d",StartAdress, NbRegisters);
qDebug("Data: %s\n",data.toHex().data());
// qDebug("\nSlave Rx Write Multiple Registers. Address: %d, Nb Reg: %d",StartAdress, NbRegisters);
// qDebug("Data: %s\n",data.toHex().data());
data = Transaction.mPDU.mData.left(4); //The response corresponds to the Start Adress and Nb of Regs. Which is the first 4 bytes of the initial request.
SendModbusResponse(Transaction, data);