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
@@ -266,7 +266,7 @@ void RS485_Initialize(void)
0, OPEN_EXISTING,
/*FILE_FLAG_OVERLAPPED */ 0, 0);
if (RS485_Handle == INVALID_HANDLE_VALUE) {
fprintf(stderr, "Unable to open %s\n", RS485_Port_Name);
fprintf(stderr, "RS485 unable to open %s\n", RS485_Port_Name);
RS485_Print_Error();
exit(1);
}
@@ -276,6 +276,8 @@ void RS485_Initialize(void)
RS485_Configure_Status();
#if PRINT_ENABLED
fprintf(stdout, "RS485 Interface: %s\n", RS485_Port_Name);
fprintf(stdout, "RS485 Baud Rate %u\n", RS485_Get_Baud_Rate());
fflush(stdout);
#endif
atexit(RS485_Cleanup);