Updated some Device_Init functions.

This commit is contained in:
skarg
2011-10-04 15:57:40 +00:00
parent 9c1f651458
commit 3641e7b40c
4 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ void bacnet_init(
void)
{
/* initialize objects */
Device_Init();
Device_Init(NULL);
/* set up our confirmed service unrecognized service handler - required! */
apdu_set_unrecognized_service_handler_handler
+4 -2
View File
@@ -948,11 +948,13 @@ bool Device_Write_Property(
/** Initialize the Device Object and each of its child Object instances.
* @ingroup ObjIntf
*/
void Device_Init(
void)
void Device_Init(
object_functions_t * object_table)
{
struct my_object_functions *pObject = NULL;
/* not using the standard table - using our own */
(void)object_table;
pObject = &Object_Table[0];
while (pObject->Object_Type < MAX_BACNET_OBJECT_TYPE) {
if (pObject->Object_Init) {