Improve MSTP debug. Fix WhoIs app APDU timeout.

This commit is contained in:
Steve Karg
2023-06-19 09:35:28 -05:00
parent c8a6ea74b8
commit 9bb367982b
4 changed files with 16 additions and 7 deletions
+3 -1
View File
@@ -365,7 +365,6 @@ int main(int argc, char *argv[])
if (getenv("BACNET_DEBUG")) {
BACnet_Debug_Enabled = true;
}
timeout_milliseconds = apdu_timeout();
/* decode any command line parameters */
filename = filename_remove_path(argv[0]);
for (argi = 1; argi < argc; argi++) {
@@ -481,6 +480,9 @@ int main(int argc, char *argv[])
address_init();
dlenv_init();
atexit(datalink_cleanup);
if (timeout_milliseconds == 0) {
timeout_milliseconds = apdu_timeout() * apdu_retries();
}
mstimer_set(&apdu_timer, timeout_milliseconds);
mstimer_set(&datalink_timer, 1000);
/* send the request */