Added object list init into create function in cases where create is called before init. (#1122)
This commit is contained in:
@@ -1700,6 +1700,9 @@ uint32_t Analog_Input_Create(uint32_t object_instance)
|
||||
unsigned j;
|
||||
#endif
|
||||
|
||||
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