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

@ -1058,15 +1058,15 @@ char T_datif::loadRecDataFromFrame()
//if (RdDleng>50) // 1.8.23 nach Verlängerung des Datensatzes um 20byte falsch!!!
//{
gpi_storeVaultRecord(readAddress, receivedData ); // always/max 64byte
/*
/*
qDebug()<<"datif cmd38 got vault data. blockNr: "<<readAddress;
if (readAddress==5)
if (readAddress==0)
for (nn=0; nn<64; nn+=8)
{
qDebug()<<receivedData[nn]<<" "<<receivedData[nn+1]<<" "<<receivedData[nn+2]<<" "<<receivedData[nn+3]<<" "
<<receivedData[nn+4]<<" "<<receivedData[nn+5]<<" "<<receivedData[nn+6]<<" "<<receivedData[nn+7];
}
*/
*/
//}
break;
@ -1085,17 +1085,35 @@ char T_datif::loadRecDataFromFrame()
}
break;
case 41: // get BNA parameters
if (RdDleng>50)
{
gpi_storeBnaParams(receivedData);
}
break;
case 21: // readback version strings of all Json-File in DC
//
gpi_storeJsonVersion(readAddress, receivedData);
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