fixes data type numbering

This commit is contained in:
eyck committed 2023-02-24 08:31:53 +01:00
1 parent ceaf52bfa1
commit 23a2f8d6c8
3 files changed
+53 -52

No files matched your search

@@ -32,7 +32,18 @@ public class TxAttribute implements ITxAttribute{
@Override
public DataType getDataType() {
return DataType.values()[scvAttribute.getData_type()];
int dt = scvAttribute.getData_type();
switch(dt) {
case 12:
return DataType.STRING;
case 10:
return DataType.POINTER;
default:
if(dt<9)
return DataType.values()[dt];
else
return DataType.NONE;
}
}
@Override