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
+4 -4
View File
@@ -274,9 +274,9 @@ int main(int argc, char *argv[])
} else {
if (target_args == 0) {
object_instance = strtoul(argv[argi], NULL, 0);
if (object_instance >= BACNET_MAX_INSTANCE) {
if (object_instance > BACNET_MAX_INSTANCE) {
fprintf(stderr,
"device-instance=%u - it must be less than %u\n",
"device-instance=%u - not greater than %u\n",
object_instance, BACNET_MAX_INSTANCE);
return 1;
}
@@ -292,9 +292,9 @@ int main(int argc, char *argv[])
target_args++;
} else if (target_args == 2) {
object_instance = strtoul(argv[argi], NULL, 0);
if (object_instance >= BACNET_MAX_INSTANCE) {
if (object_instance > BACNET_MAX_INSTANCE) {
fprintf(stderr,
"object-instance=%u - it must be less than %u\n",
"object-instance=%u - not greater than %u\n",
Target_Device_Object_Instance, BACNET_MAX_INSTANCE);
return 1;
}