Changed Object Table from a global to a local variable and added a Device function to initialize it.
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
* @{ */
|
||||
|
||||
/* All included BACnet objects */
|
||||
object_functions_t Object_Table[] = {
|
||||
static object_functions_t Object_Table[] = {
|
||||
{DEVICE_OBJ_FUNCTIONS},
|
||||
{MAX_BACNET_OBJECT_TYPE, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL},
|
||||
};
|
||||
@@ -270,6 +270,7 @@ void MyReadPropertyMultipleAckHandler(
|
||||
static void Init_Service_Handlers(
|
||||
void)
|
||||
{
|
||||
Device_Initialize_Object_Functions(&Object_Table[0]);
|
||||
Device_Init();
|
||||
|
||||
#if BAC_ROUTING
|
||||
|
||||
Reference in New Issue
Block a user