Merge pull request #1922 from eeff/v2.7

fix(core): remove NEU_TYPE_TIME and NEU_TYPE_DATA_AND_TIME option
This commit is contained in:
fengzeroz
2024-03-22 16:27:40 +08:00
committed by GitHub
2 changed files with 4 additions and 9 deletions
+3 -6
View File
@@ -194,16 +194,13 @@ static inline char *neu_value_str(neu_type_e type, neu_value_u value)
snprintf(str, sizeof(str), "type: %s, value: %u", neu_type_string(type),
value.boolean);
break;
case NEU_TYPE_STRING: {
case NEU_TYPE_STRING:
case NEU_TYPE_TIME:
case NEU_TYPE_DATA_AND_TIME: {
snprintf(str, sizeof(str), "type: %s, value: %c%c%c",
neu_type_string(type), value.str[0], value.str[1],
value.str[2]);
break;
case NEU_TYPE_TIME:
case NEU_TYPE_DATA_AND_TIME:
snprintf(str, sizeof(str), "type: %s, value: %s", neu_type_string(type),
value.str);
break;
}
default:
break;
+1 -3
View File
@@ -150,9 +150,7 @@ int neu_datatag_parse_addr_option(const neu_datatag_t * datatag,
}
break;
}
case NEU_TYPE_STRING:
case NEU_TYPE_TIME:
case NEU_TYPE_DATA_AND_TIME: {
case NEU_TYPE_STRING: {
char *op = find_last_character(datatag->address, '.');
if (op == NULL) {