Fixed the units to/from ASCII to function for other units properties. (#1165)

This commit is contained in:
Steve Karg
2025-12-02 12:37:27 -06:00
committed by GitHub
parent cef68dc079
commit c33944e0f8
3 changed files with 13 additions and 0 deletions
+1
View File
@@ -43,6 +43,7 @@ The git repositories are hosted at the following sites:
### Fixed
* Fixed the units to/from ASCII to function for other units properties. (#1165)
* Fixed datetime integer overflow on 8-bit AVR compiler (#1162)
* Fixed the ports/linux BACnet/IP cache netmask for accurate subnet
prefix calculation implementation which had always returned 0. (#1155)
+6
View File
@@ -2386,6 +2386,12 @@ static int bacapp_snprintf_enumerated(
str, str_len, "%s", bactext_event_state_name(value));
break;
case PROP_UNITS:
case PROP_CONTROLLED_VARIABLE_UNITS:
case PROP_DERIVATIVE_CONSTANT_UNITS:
case PROP_INTEGRAL_CONSTANT_UNITS:
case PROP_PROPORTIONAL_CONSTANT_UNITS:
case PROP_OUTPUT_UNITS:
case PROP_CAR_LOAD_UNITS:
if (bactext_engineering_unit_name_proprietary((unsigned)value)) {
ret_val = bacapp_snprintf(
str, str_len, "proprietary-%lu", (unsigned long)value);
+6
View File
@@ -3032,6 +3032,12 @@ bool bactext_object_property_strtoul(
bacnet_event_state_names, search_name, found_index);
break;
case PROP_UNITS:
case PROP_CONTROLLED_VARIABLE_UNITS:
case PROP_DERIVATIVE_CONSTANT_UNITS:
case PROP_INTEGRAL_CONSTANT_UNITS:
case PROP_PROPORTIONAL_CONSTANT_UNITS:
case PROP_OUTPUT_UNITS:
case PROP_CAR_LOAD_UNITS:
status = bactext_string_to_uint32_index(
bacnet_engineering_unit_names, search_name, found_index);
break;