Corrected baud rate setting for mstpcap demo utility. Thank you, Michael D!

This commit is contained in:
skarg
2011-11-26 16:32:17 +00:00
parent d009a1a15e
commit 087584e85e
2 changed files with 105 additions and 11 deletions
+1 -1
View File
@@ -838,11 +838,11 @@ int main(
}
if (argc > 2) {
my_baud = strtol(argv[2], NULL, 0);
RS485_Set_Baud_Rate(my_baud);
}
atexit(cleanup);
RS485_Initialize();
timer_init();
RS485_Set_Baud_Rate(my_baud);
fprintf(stdout, "mstpcap: Using %s for capture at %ld bps.\n",
RS485_Interface(), (long) RS485_Get_Baud_Rate());
#if defined(_WIN32)