fix DEBUG_VERBOSE code

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2645 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.9
Stéphane Fillod, F8CFE 2009-02-20 12:22:52 +00:00
rodzic c601e32503
commit d0ae3ed6b7
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -2369,9 +2369,12 @@ int tcsetattr( int fd, int when, struct termios *s_termios )
}
#ifdef DEBUG_VERBOSE
{
char message[32];
sprintf( message, "VTIME:%d, VMIN:%d\n", s_termios->c_cc[VTIME],
s_termios->c_cc[VMIN] );
report( message );
}
#endif /* DEBUG_VERBOSE */
vtime = s_termios->c_cc[VTIME] * 100;
timeouts.ReadTotalTimeoutConstant = vtime;
@ -2392,6 +2395,8 @@ int tcsetattr( int fd, int when, struct termios *s_termios )
timeouts.ReadTotalTimeoutMultiplier = 0;
}
#ifdef DEBUG_VERBOSE
{
char message[64];
sprintf( message, "ReadIntervalTimeout=%ld\n",
timeouts.ReadIntervalTimeout );
report( message );
@ -2407,6 +2412,7 @@ int tcsetattr( int fd, int when, struct termios *s_termios )
sprintf( message, "ReadTotalTimeoutMultiplier: %ld\n",
timeouts.ReadTotalTimeoutMultiplier );
report( message );
}
#endif /* DEBUG_VERBOSE */
if ( !SetCommTimeouts( index->hComm, &timeouts ) )
{