mirror of
https://github.com/synthetos/g2.git
synced 2026-09-23 12:14:09 +08:00
Installed union for value
This commit is contained in:
+5
-1
@@ -258,7 +258,11 @@ typedef struct nvObject { // depending on use, not all elements ma
|
||||
int8_t depth; // depth of object in the tree. 0 is root (-1 is invalid)
|
||||
valueType valuetype; // see valueType enum
|
||||
int8_t precision; // decimal precision for reporting (JSON)
|
||||
float value; // numeric value
|
||||
// float value; // numeric value
|
||||
union {
|
||||
float value; // float values
|
||||
uint32_t value_int; // uint32 values
|
||||
};
|
||||
char group[GROUP_LEN+1]; // group prefix or NUL if not in a group
|
||||
char token[TOKEN_LEN+1]; // full mnemonic token for lookup
|
||||
char (*stringp)[]; // pointer to array of characters from shared character array
|
||||
|
||||
Reference in New Issue
Block a user