Merged revision(s) 2705 from branches/obvius/bacnet-stack:

Initialize APDU retries from environment $BACNET_APDU_RETRIES just
  as we initialize APDU timeout.

........
This commit is contained in:
skarg
2014-01-16 14:13:54 +00:00
parent c3326b324c
commit 563665dfe7
+4
View File
@@ -290,6 +290,10 @@ void dlenv_init(
apdu_timeout_set(60000);
#endif
}
pEnv = getenv("BACNET_APDU_RETRIES");
if (pEnv) {
apdu_retries_set((uint16_t) strtol(pEnv, NULL, 0));
}
if (!datalink_init(getenv("BACNET_IFACE"))) {
exit(1);
}