Added object list init into create function in cases where create is called before init. (#1122)
This commit is contained in:
@@ -1230,6 +1230,9 @@ uint32_t Binary_Value_Create(uint32_t object_instance)
|
||||
struct object_data *pObject = NULL;
|
||||
int index = 0;
|
||||
|
||||
if (!Object_List) {
|
||||
Object_List = Keylist_Create();
|
||||
}
|
||||
if (object_instance > BACNET_MAX_INSTANCE) {
|
||||
return BACNET_MAX_INSTANCE;
|
||||
} else if (object_instance == BACNET_MAX_INSTANCE) {
|
||||
|
||||
Reference in New Issue
Block a user