Wykres commitów

24 Commity (cf1187997ac30903883d825956086be8daf8834e)

Autor SHA1 Wiadomość Data
Michael Black ff8ddf018c astyle all C files 2020-02-23 11:26:09 -06:00
Michael Black b7e8f01701 Fix mingw32 DLL linkage of hl_sleep 2020-01-10 15:58:16 -06:00
Michael Black 7ee3a702f5
Replace all usleep with hl_usleep
Several places where usleep max value could be overflowed
New hl_usleep can take values > 1000000
2020-01-07 23:18:56 -06:00
Michael Black 60cfecd5b4
Hopefully suppress arm compilation warning 2019-12-03 16:15:33 -06:00
Michael Black da86568edb
Fix compile warnings on termios.c 2019-12-03 14:51:02 -06:00
Michael Black 6bf3b00c4f
astyle all files 2019-11-30 10:19:08 -06:00
Michael Black b7ee4109ca
Fix termios to return timeout value when timeout occurs 2019-06-12 16:38:58 -05:00
Michael Black c61a62bec5
Fix termios debug statement 2019-06-12 12:15:01 -05:00
Bill Somerville 6612f8e1b2 Fix an incorrect error return value from win32_serial_select() 2019-05-04 11:35:55 +01:00
Michael Black 1d41268e4c Fixes to termios.c on W32 targets
I was debugging termios.c and this patch fixes two small problems--two
debug printf format problems and another one that causes an extra char
to be read on timeout.

The extra char problem is easily duplicated by using the "w" command
under rigtctl.  Most all other commands use fixed-length response
strings which don't exhibit the problem.  But since "w" does not know
how long the response should be it loops until it times out.  Every time
it times out it would return 1 extra character (this was 100% repeatable
on two different rigs).

Turns out it was a simple typo in the code as the read was using the
write event instead of the read event.
2015-02-22 10:03:24 -06:00
Bill Somerville aa3fd7ba28 Remove gratuitous sleeps before function exits
Add sleep in tight wait loop to reduce CPU loading.
2014-12-10 01:34:35 +00:00
Bill Somerville 849f1e1bf8 Fix serial i/o on Windows.
Fix bytes read count accumulation in Windows serial I/O.

read_string  from  communications  port   doesn't  handle  timeout  on
anything but the first character read.

Honour VMIN tty parameter correctly.
2014-11-30 11:22:58 +00:00
Stephane Fillod 683cc7eedd win32termios: fix in tcflush
Under Windows, the Icom transceive messages do not get flushed
properly. Returned data is cached in windows serial buffer and
are received by hamlib as response to initial request.
Lada suggested to add PURGE_RXCLEAR flag to tcflush (lib/termios.c),
actually clearing and making the buffer empty.

Look at http://msdn.microsoft.com/en-us/library/windows/desktop/aa363428%28v=vs.85%29.aspx
PURGE_RXABORT only terminates overlapped reads but not input buffer.

Nate suggested to add the PURGE_TXCLEAR flag to the output queue as well.

Signed-off-by: Ladislav Vaiz <spam@nagano.cz>
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-05-06 08:35:00 +02:00
Kamal Mostafa 3466512dbd Fix spelling errors 2012-08-21 19:54:50 -07:00
Stephane Fillod 3d93b8ccbb win32termios: fix warnings found by w64-mingw32 4.6.x, plus misc rxtx update 2012-06-23 16:43:09 +02:00
Stephane Fillod 874ca8c79d allow seamless access to ports higher than COM9 2012-06-23 16:40:29 +02:00
Stephane Fillod 9646b90a28 win32termios: remove deadwood & keep naming space tidy 2012-01-30 23:39:16 +01:00
Nate Bargmann c7e64dfa09 Update LGPL/GPL header in lib source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:36 -05:00
Stéphane Fillod, F8CFE d0ae3ed6b7 fix DEBUG_VERBOSE code
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2645 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-20 12:22:52 +00:00
Stéphane Fillod, F8CFE c9df61f699 update from rxtx-2.1-7
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2471 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-11-05 23:00:20 +00:00
Stéphane Fillod, F8CFE c08cc78724 Fixes for BRK/RTS/DTR handling under win32
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1782 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-08-01 23:13:17 +00:00
Stéphane Fillod, F8CFE d003253de2 various hacks to make win32_serial_select to work (notify read)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1563 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-10-17 22:53:54 +00:00
Stéphane Fillod, F8CFE bc8b5a3fe4 mingw/cygwin fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1513 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-08-20 07:22:40 +00:00
Stéphane Fillod, F8CFE d4e34e5f9d added termios replacement for win32
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1504 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-08-15 01:15:45 +00:00