fixed proprietary min-max error code and class for unit tests.
This commit is contained in:
@@ -1370,10 +1370,10 @@ typedef enum {
|
||||
/* Enumerated values 0-63 are reserved for definition by ASHRAE. */
|
||||
/* Enumerated values 64-65535 may be used by others subject to */
|
||||
/* the procedures and constraints described in Clause 23. */
|
||||
MAX_BACNET_ERROR_CLASS = 8
|
||||
MAX_BACNET_ERROR_CLASS = 8,
|
||||
ERROR_CLASS_PROPRIETARY_FIRST = 64,
|
||||
ERROR_CLASS_PROPRIETARY_LAST = 65535
|
||||
} BACNET_ERROR_CLASS;
|
||||
#define FIRST_PROPRIETARY_ERROR_CLASS 64
|
||||
#define LAST_PROPRIETARY_ERROR_CLASS 65535
|
||||
|
||||
/* These are sorted in the order given in
|
||||
Clause 18. ERROR, REJECT AND ABORT CODES
|
||||
|
||||
@@ -233,8 +233,8 @@ void testBACError(
|
||||
|
||||
/* max boundaries */
|
||||
service = 255;
|
||||
error_class = LAST_PROPRIETARY_ERROR_CLASS;
|
||||
error_code = LAST_PROPRIETARY_ERROR_CODE;
|
||||
error_class = ERROR_CLASS_PROPRIETARY_LAST;
|
||||
error_code = ERROR_CODE_PROPRIETARY_LAST;
|
||||
len =
|
||||
bacerror_encode_apdu(&apdu[0], invoke_id, service, error_class,
|
||||
error_code);
|
||||
|
||||
Reference in New Issue
Block a user