Improvements to bacepics for the routing case; can now specify a DNET on the command line.

Not all there yet, however, for the routed case.
Added null tests and dummy string defaults in Add_Routed_Device().
This commit is contained in:
tbrennan3
2010-12-02 22:05:59 +00:00
parent 31f440e070
commit de4ead47c6
2 changed files with 41 additions and 11 deletions
+8 -2
View File
@@ -127,8 +127,14 @@ uint16_t Add_Routed_Device(
iCurrent_Device_Idx = i;
pDev->bacObj.mObject_Type = OBJECT_DEVICE;
pDev->bacObj.Object_Instance_Number = Object_Instance;
Routed_Device_Set_Object_Name( sObject_Name, strlen( sObject_Name ));
Routed_Device_Set_Description( sDescription, strlen( sDescription ));
if ( sObject_Name != NULL )
Routed_Device_Set_Object_Name( sObject_Name, strlen( sObject_Name ));
else
Routed_Device_Set_Object_Name( "No Name", strlen( "No Name" ));
if ( sDescription != NULL )
Routed_Device_Set_Description( sDescription, strlen( sDescription ));
else
Routed_Device_Set_Description( "No Descr", strlen( "No Descr" ));
pDev->Database_Revision = 0; /* Reset/Initialize now */
return i;
}