Fixed typo in command line argument check of example app for BACnet Network-Number-Is (#707)

This commit is contained in:
Eric Miller
2024-07-30 13:03:54 -04:00
committed by GitHub
parent c55f5e2886
commit bdf63f4b19
+1 -1
View File
@@ -288,7 +288,7 @@ int main(int argc, char *argv[])
}
if (argc > 2) {
Target_Network_Number_Status = strtol(argv[2], NULL, 0);
if (Target_Network_Number > UINT8_MAX) {
if (Target_Network_Number_Status > UINT8_MAX) {
fprintf(stderr, "status=%d - it must be 0 to 255\r\n",
Target_Network_Number_Status);
return 1;