kopia lustrzana https://github.com/Hamlib/Hamlib
fix DEBUG_VERBOSE code
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2645 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.2.9
rodzic
c601e32503
commit
d0ae3ed6b7
|
@ -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 ) )
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue