Mike Black W9MDB
5588b2465c
Change termios.c Windows sleep to 10,000us instead of 1,000us -- makes for more accurate sleep calculation
...
https://github.com/Hamlib/Hamlib/issues/996
2022-03-24 12:12:22 -05:00
Mike Black W9MDB
8c34ce1a2d
astyle source code
2022-02-05 15:27:43 -06:00
Mike Black W9MDB
9aade8de3f
Add config.h to include/hamlib so HAVE_PTHREAD is available if needed
...
https://github.com/Hamlib/Hamlib/issues/947
2022-02-03 22:31:42 -06:00
Mike Black W9MDB
6f0d8bdcce
Change snprintf to SNPRINTF in lib files
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-22 22:20:05 -06:00
Mike Black W9MDB
7764b59f36
Change sprintf to snprint in termios.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-09 09:25:15 -06:00
Mike Black W9MDB
63a51c36a1
astyle files preparing for 4.4 release
2021-11-28 12:41:10 -06:00
Mike Black W9MDB
233036f874
Fix compile warning in termios.c
2021-11-03 11:56:34 -05:00
Mike Black W9MDB
30ef04b1a4
Speed up Windows serial I/O
...
Was using a fixed timeout instead of returning already read
https://github.com/Hamlib/Hamlib/issues/850
2021-11-02 16:40:39 -05:00
Mike Black W9MDB
52e0840f1d
Speed up serial timeout minimum from ~12ms to ~1ms
2021-10-31 17:21:20 -05:00
Daniele Forsi
1e00e4e8db
Fix typos
...
Command line:
codespell --write-changes --summary --skip=*.m4 --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor,objext,ans
2020-10-11 18:03:50 +02:00
Michael Black W9MDB
b97d05369c
astyle files
2020-09-14 23:12:35 -05:00
Michael Black W9MDB
12c2434dc7
Fix cppcheck warning in termios.c:
2020-09-14 07:59:47 -05:00
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