Enable example apps to bind to device 4194303 (#615)

This commit is contained in:
Steve Karg
2024-04-04 10:58:44 -05:00
committed by GitHub
parent 41c11b23d3
commit 0cebc83d88
24 changed files with 77 additions and 77 deletions
+2 -2
View File
@@ -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);
}
}