From cd3eff013a731db35f6bb9a55544df32e305350a Mon Sep 17 00:00:00 2001 From: Thomas Bracht Laumann Jespersen Date: Sun, 27 Mar 2022 19:19:54 +0200 Subject: [PATCH] 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 " for some number n which creates multiple objects with the same object-name. Signed-off-by: Thomas Jespersen --- src/bacnet/basic/object/iv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bacnet/basic/object/iv.c b/src/bacnet/basic/object/iv.c index 9d063a76..7ffaa82b 100644 --- a/src/bacnet/basic/object/iv.c +++ b/src/bacnet/basic/object/iv.c @@ -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); }