Enable example apps to bind to device 4194303 (#615)
This commit is contained in:
+2
-2
@@ -247,10 +247,10 @@ int main(int argc, char *argv[])
|
||||
if (argc > 1) {
|
||||
first_object_instance = strtol(argv[1], NULL, 0);
|
||||
if ((first_object_instance == 0) ||
|
||||
(first_object_instance >= BACNET_MAX_INSTANCE)) {
|
||||
(first_object_instance > BACNET_MAX_INSTANCE)) {
|
||||
printf("Error: Invalid Object Instance %s \n", argv[1]);
|
||||
printf(
|
||||
"Provide a number from 1 to %ul \n", BACNET_MAX_INSTANCE - 1);
|
||||
"Provide a number from 1 to %ul \n", BACNET_MAX_INSTANCE);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user