aqhome-nodes: introduced DENOM to value (not sure whether this is needed).

This commit is contained in:
Martin Preuss
2024-10-20 18:53:30 +02:00
parent a6af10a32d
commit fae5b55e82
3 changed files with 13 additions and 2 deletions

View File

@@ -97,6 +97,7 @@ void _dumpValue(const AQHNODE_VALUE *value, GWEN_BUFFER *dbuf, int indent)
int dataType;
int modality;
const char *units;
int denom;
id=AQHNODE_Value_GetId(value);
name=AQHNODE_Value_GetName(value);
@@ -105,16 +106,18 @@ void _dumpValue(const AQHNODE_VALUE *value, GWEN_BUFFER *dbuf, int indent)
dataType=AQHNODE_Value_GetDataType(value);
modality=AQHNODE_Value_GetModality(value);
units=AQHNODE_Value_GetValueUnits(value);
denom=AQHNODE_Value_GetDenom(value);
GWEN_Buffer_FillWithBytes(dbuf, ' ', indent);
GWEN_Buffer_AppendArgs(dbuf, "Value: %d[%02x] (%s, %s, %s, %s, %s, %s)\n",
GWEN_Buffer_AppendArgs(dbuf, "Value: %d[%02x] (%s, %s, %s, %s, %s, %s, %d)\n",
id, id,
name?name:"<empty name>",
AQH_ValueType_toString(valueType),
AQH_ValueDataType_toString(dataType),
AQH_ValueModality_toString(modality),
units?units:"<empty units>",
descr?descr:"<empty descr>");
descr?descr:"<empty descr>",
denom);
}