basic/object/iv: Name it "INTEGER VALUE", not "ANALOG VALUE" (#242)

Running the sample BACnet demo server, we noticed that the names of
integer-value types were all "ANALOG VALUE <n>" for some number n which
creates multiple objects with the same object-name.

Signed-off-by: Thomas Jespersen <tj@omnio.net>
This commit is contained in:
Thomas Bracht Laumann Jespersen
2022-03-27 19:19:54 +02:00
committed by GitHub
parent 0963f65fc5
commit cd3eff013a
+1 -1
View File
@@ -228,7 +228,7 @@ bool Integer_Value_Object_Name(
index = Integer_Value_Instance_To_Index(object_instance);
if (index < MAX_INTEGER_VALUES) {
sprintf(
text_string, "ANALOG VALUE %lu", (unsigned long)object_instance);
text_string, "INTEGER VALUE %lu", (unsigned long)object_instance);
status = characterstring_init_ansi(object_name, text_string);
}