Merged revision(s) 2782 from branches/releases/bacnet-stack-0-8-0:
Added initial names and descriptions to example multi-state value and multi-state input objects. ........
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
/* number of demo objects */
|
/* number of demo objects */
|
||||||
#ifndef MAX_MULTISTATE_INPUTS
|
#ifndef MAX_MULTISTATE_INPUTS
|
||||||
#define MAX_MULTISTATE_INPUTS 1
|
#define MAX_MULTISTATE_INPUTS 4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* how many states? 1 to 254 states - 0 is not allowed. */
|
/* how many states? 1 to 254 states - 0 is not allowed. */
|
||||||
@@ -103,6 +103,8 @@ void Multistate_Input_Init(
|
|||||||
/* initialize all the analog output priority arrays to NULL */
|
/* initialize all the analog output priority arrays to NULL */
|
||||||
for (i = 0; i < MAX_MULTISTATE_INPUTS; i++) {
|
for (i = 0; i < MAX_MULTISTATE_INPUTS; i++) {
|
||||||
Present_Value[i] = 1;
|
Present_Value[i] = 1;
|
||||||
|
sprintf(&Object_Name[i][0], "MULTISTATE INPUT %u", i);
|
||||||
|
sprintf(&Object_Description[i][0], "MULTISTATE INPUT %u", i);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -97,11 +97,13 @@ void Multistate_Value_Property_Lists(
|
|||||||
void Multistate_Value_Init(
|
void Multistate_Value_Init(
|
||||||
void)
|
void)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned int i;
|
||||||
|
|
||||||
/* initialize all the analog output priority arrays to NULL */
|
/* initialize all the analog output priority arrays to NULL */
|
||||||
for (i = 0; i < MAX_MULTISTATE_VALUES; i++) {
|
for (i = 0; i < MAX_MULTISTATE_VALUES; i++) {
|
||||||
Present_Value[i] = 1;
|
Present_Value[i] = 1;
|
||||||
|
sprintf(&Object_Name[i][0], "MULTISTATE VALUE %u", i);
|
||||||
|
sprintf(&Object_Description[i][0], "MULTISTATE VALUE %u", i);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user