Changes for BNAÖ case 41, 42, 16.

This commit is contained in:
Thomas 2023-11-14 08:39:15 +01:00
parent 4eabff268e
commit 40848344f5

View File

@ -1060,7 +1060,7 @@ char T_datif::loadRecDataFromFrame()
gpi_storeVaultRecord(readAddress, receivedData ); // always/max 64byte gpi_storeVaultRecord(readAddress, receivedData ); // always/max 64byte
/* /*
qDebug()<<"datif cmd38 got vault data. blockNr: "<<readAddress; qDebug()<<"datif cmd38 got vault data. blockNr: "<<readAddress;
if (readAddress==5) if (readAddress==0)
for (nn=0; nn<64; nn+=8) for (nn=0; nn<64; nn+=8)
{ {
qDebug()<<receivedData[nn]<<" "<<receivedData[nn+1]<<" "<<receivedData[nn+2]<<" "<<receivedData[nn+3]<<" " qDebug()<<receivedData[nn]<<" "<<receivedData[nn+1]<<" "<<receivedData[nn+2]<<" "<<receivedData[nn+3]<<" "
@ -1085,17 +1085,35 @@ char T_datif::loadRecDataFromFrame()
} }
break; break;
case 41: // get BNA parameters
if (RdDleng>50)
{
gpi_storeBnaParams(receivedData);
}
break;
case 21: // readback version strings of all Json-File in DC case 21: // readback version strings of all Json-File in DC
// //
gpi_storeJsonVersion(readAddress, receivedData); gpi_storeJsonVersion(readAddress, receivedData);
break; break;
case 116: // get BNA current collection
if (RdDleng>7)
{
gpi_storeBnaCollection(receivedData);
}
break;
case 42: // get BNA box content and value of types
// qDebug()<< "CAmaster datif_got 42 ";
// for (uctmp=0; uctmp<64; uctmp++)
// qDebug()<<receivedData[uctmp]<<" ";
if (RdDleng>60)
{
gpi_storeBnaContent(receivedData);
}
break;
} }
readSource=0; // 17.05.2023: to avoid multiple recording readSource=0; // 17.05.2023: to avoid multiple recording