Changed max to be a define so that compilers don't have to use larger integers than necessary to represent enums.

This commit is contained in:
skarg
2007-09-19 15:30:06 +00:00
parent b00aa000f5
commit 7b88a99e0f
+2 -2
View File
@@ -278,15 +278,15 @@ typedef enum {
PROP_PROGRESS_VALUE = 240, PROP_PROGRESS_VALUE = 240,
PROP_RAMP_RATE = 241, PROP_RAMP_RATE = 241,
PROP_STEP_INCREMENT = 242, PROP_STEP_INCREMENT = 242,
PROP_SYSTEM_FAILURE_VALUE = 243, PROP_SYSTEM_FAILURE_VALUE = 243
/* The special property identifiers all, optional, and required */ /* The special property identifiers all, optional, and required */
/* are reserved for use in the ReadPropertyConditional and */ /* are reserved for use in the ReadPropertyConditional and */
/* ReadPropertyMultiple services or services not defined in this standard. */ /* ReadPropertyMultiple services or services not defined in this standard. */
/* Enumerated values 0-511 are reserved for definition by ASHRAE. */ /* Enumerated values 0-511 are reserved for definition by ASHRAE. */
/* Enumerated values 512-4194303 may be used by others subject to the */ /* Enumerated values 512-4194303 may be used by others subject to the */
/* procedures and constraints described in Clause 23. */ /* procedures and constraints described in Clause 23. */
MAX_BACNET_PROPERTY_ID = 4194303
} BACNET_PROPERTY_ID; } BACNET_PROPERTY_ID;
#define MAX_BACNET_PROPERTY_ID 4194303
typedef enum { typedef enum {
ACTION_DIRECT = 0, ACTION_DIRECT = 0,