Skip to content
Snippets Groups Projects
Commit 28a0bbd9 authored by rswindell's avatar rswindell
Browse files

Support the display of the com i/o library version string and build date/time.

parent e86cfc54
No related branches found
No related tags found
No related merge requests found
......@@ -749,10 +749,12 @@ int main(int argc, char** argv)
int argn;
char* arg;
char* p;
char str[128];
char path[MAX_PATH+1];
char fname[MAX_PATH+1];
char ini_fname[MAX_PATH+1];
char banner[128];
char compiler[128];
/*******************************/
/* Generate and display banner */
......@@ -845,10 +847,20 @@ int main(int argc, char** argv)
#endif
lprintf(LOG_INFO,"%s", comVersion(str,sizeof(str)));
DESCRIBE_COMPILER(compiler);
lprintf(LOG_INFO,"Build %s %s %s", __DATE__, __TIME__, compiler);
/************************************/
/* Inititalize WinSock and COM Port */
/************************************/
if(!winsock_startup())
return -1;
/* Install clean-up callback */
atexit(cleanup);
lprintf(LOG_INFO,"TCP Host: %s", host);
lprintf(LOG_INFO,"TCP Port: %u", port);
......@@ -867,12 +879,6 @@ int main(int argc, char** argv)
lprintf(LOG_INFO,"%s set to %ld bps DTE rate", com_dev, comGetBaudRate(com_handle));
if(!winsock_startup())
return -1;
/* Install clean-up callback */
atexit(cleanup);
/***************************/
/* Initialization Complete */
/***************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment