Wykres commitów

165 Commity (master)

Autor SHA1 Wiadomość Data
Mike Black W9MDB 53476dd14d Remove some more debug 2021-06-01 07:19:00 -05:00
Mike Black W9MDB 81e3e2e5d2 astyle files 2021-04-29 17:23:37 -05:00
Mike Black W9MDB 25eb70d90d In iofunc.c only call hl_sleep if needed 2021-04-25 14:59:47 -05:00
Mike Black W9MDB bbc8e00074 astyle files 2021-04-04 12:50:07 -05:00
Mike Black W9MDB f6dc32778b Reduce verbosity in iofunc.c 2021-03-29 13:01:26 -05:00
Michael Black W9MDB 6cc8e5a20f Change LIBUSB definitions to cover both conditions
https://github.com/Hamlib/Hamlib/issues/634
2021-03-27 15:35:12 -05:00
Michael Black W9MDB 753cd792d3 Add debug to iofunc.c
https://github.com/Hamlib/Hamlib/issues/635
2021-03-27 15:17:52 -05:00
Michael Black W9MDB ee60a68bec astyle files 2021-02-28 09:46:01 -06:00
Michael Black W9MDB 83c47fad42 Android NDK now builds -- check README.android for info on libusb
https://github.com/Hamlib/Hamlib/issues/546
2021-02-28 15:50:36 +01:00
Michael Black W9MDB 7b04640cea Fix read_string timeout display value 2021-01-28 12:22:52 -06:00
Michael Black W9MDB 6d51f65528 astyle files 2020-10-06 23:14:27 -05:00
Michael Black W9MDB 86949c4ef7 Remove debug 2020-10-02 23:00:53 -05:00
Michael Black W9MDB 293a844c41 Fix W command speed by using bytes requested correctly
read_string now recognizes binary strings to read 5X more bytes
Fixed Reply: prompt double output and space after :
https://github.com/Hamlib/Hamlib/issues/387
2020-10-02 17:23:48 -05:00
Michael Black W9MDB 7455fa1b91 Clean up compile warning on iofunc.c 2020-09-30 12:59:44 -05:00
Michael Black W9MDB 73d947213f Reduce debug inj iofunc.c 2020-09-30 12:56:47 -05:00
Michael Black W9MDB 3c6ae62e59 Change get_kenwood_level to return both float 0-1.0 and raw value
Fix Elecraft K3/K3S/KX2/KX3 RF level get/set
Update other rigs for new get_kenwood_level call
https://github.com/Hamlib/Hamlib/issues/388
2020-09-30 12:46:54 -05:00
Daniele Forsi d7b332c3f7 Fix spelling errors
Fixed using the following command:
codespell --write-changes --summary --skip=*.m4 --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor"
codespell --write-changes --summary --skip=aclocal.m4,lib --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor"

Codespell home page: https://github.com/codespell-project/codespell
2020-07-24 09:02:48 +02:00
mdblack98 d5d6c55439 Fix JTDSK compilation warnings
https://github.com/Hamlib/Hamlib/issues/233
2020-05-01 14:33:35 -05:00
mdblack98 d8fc515460 astyle iofunc. 2020-04-22 09:54:18 -05:00
mdblack98 ded8b6873d Add debug to read_string 2020-04-22 09:53:37 -05:00
Michael Black f1f0d7f129 Fix some of the documentation 2020-04-09 17:56:19 -05:00
Bill Somerville e1e6969e9e
Simplify closing of device files
By treating PTT/DCD devices differently from rig control devices.
2020-01-26 19:06:27 +00:00
Bill Somerville 5edceddcea
Update i/o functions to support GPIO(N) port closure 2020-01-26 12:33:05 +00: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 fb73e5abd7
Fix some cppcheck warnings
Fix declarations after statements
Remove some !rig checks...we either don't need them or need them everywhere with a new error code
If you pass a NULL rig you get what you deserve :-)
2019-12-09 17:12:13 -06:00
Michael Black 1011ea16e4
Fix cppcheck warnings in iofunc.c 2019-12-08 16:56:14 -06:00
Michael Black 2f4d62709e
Added a dummy snprintf to rig_debug to allow gcc to check format strings
This found tons of errors in rig_debug statements
So this patch cleans up all the files that were producing warnings or errors
This should fix a few segfaults when running with debug turned on
2019-11-30 10:04:31 -06:00
Michael Black 8f93173462 Reduce verbosity of rig_strrmode and read_string 2019-02-05 09:31:54 -06:00
Michael Black W9MDB aadd458b99 Ensure read_string value is terminated 2018-10-25 08:37:59 -05:00
Nate Bargmann ab3e6bb5a5 Formatted src/ to final coding guidelines 2017-10-04 21:32:08 -05:00
c vw 028732bdfd Changes to make microHam support compile under MinGW 2017-09-21 17:55:21 +02:00
c vw d008ca6e5d Microham support. Use "uh-rig" for rig_pathname to talk to the
microHam device for CAT. If you want hardware PTT via the microham
device, use DTR method and ptt_pathname "uh-ptt".
2017-09-10 19:56:59 -05:00
Nate Bargmann f76b354588 Reformatted src directory 2017-08-09 06:14:31 -05:00
Bill Somerville 143f305b49 Further clarification in the implementation of kenwood_transaction()
Buffer size is  now an input parameter only as  the return data length
is  implicit since  a null  terminated C  string is  returned.  Better
precondition checks are impelmented.
2015-02-16 12:46:35 +00:00
Bill Somerville 82b8649030 Revert read_string() to partial results are a success status
The read_string() function was changed to return a -RIG_ETIMEOUT error
when timing out after having read  some characters. This caused a back
end to fail because it was  using a read_string() with an invalid stop
character  and relying  on the  timed out  read_string() to  fetch the
data. This  patch reverts to  the prior  behavior of returning  a null
terminated buffer and  read bytes count if at least  one byte has been
read.
2014-12-10 01:25:33 +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
Andrew Errington 1a77ef9eb9 Initial support for CM108 GPIO contorl of PTT
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-01-11 06:16:51 -06:00
Stephane Fillod da80137819 Add support for RIG_PORT_UDP_NETWORK
Also some copyright year update,
and default serial device on MacOSX
2012-01-06 09:28:24 +01:00
Nate Bargmann 3dedd4404f Add elapsed time reporting to read_block()
Upon a read timeout, the elapsed time in seconds will be displayed in
the timeout error message.

Added function name to the beginning of all debug output messages.
2011-11-30 06:17:12 -06:00
Nate Bargmann a54ef9c157 Add elapsed time reporting to read_string()
Upon a read timeout, the elapsed time in seconds will be displayed in
the timeout error message.
2011-11-22 19:00:28 -06:00
Nate Bargmann dad27d1f69 Update LGPL header in src source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:37 -05:00
Stéphane Fillod, F8CFE 4ce20e5b60 - Clear MSB of data read on 7-bit serial port,
as it looks necessary with 7S1
- Do read unwanted response in prm80_transaction().


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3001 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-10-29 07:50:57 +00:00
Stéphane Fillod, F8CFE 262134f97c fix corner case in port_close()
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2755 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-11-01 22:39:39 +00:00
Stéphane Fillod, F8CFE bbafe261fd factorize port_open/port_close, fix a bug when setting RTS/DTR
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2729 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-09-14 07:49:04 +00:00
Stéphane Fillod, F8CFE 3f7d602f56 copyright clarification
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2709 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-06-23 20:30:22 +00:00
Stéphane Fillod, F8CFE d2b920c1ad MinGW network portability and regression fix
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2473 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-11-05 23:07:38 +00:00
Stéphane Fillod, F8CFE 638628e18d make select() watch for errors
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2427 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-10-27 22:20:21 +00:00
Stéphane Fillod, F8CFE a30c4a7198 some more documenting of read_block()
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2422 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-10-26 10:47:33 +00:00
Stéphane Fillod, F8CFE 1fcc1218d9 check write() return value
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2316 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-04-11 14:07:09 +00:00
Martin Ewing, AA6E f6ddc3edad documentation
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2145 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-10-15 00:27:52 +00:00
Alexandru Csete OZ9AEC cee96e3af5 Cast constant caps to variable caps in order to avoid compiler warnings.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2136 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-10-07 21:33:31 +00:00
Stéphane Fillod, F8CFE 9fae198566 renamed port_t as hamlib_port_t
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1957 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-04-03 12:27:17 +00:00
Stéphane Fillod, F8CFE f23efe3a7c prepare work for Win32 systems which have 2 possible ABI: _stdcall and _cdecl
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1858 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-10-02 10:32:09 +00:00
Stéphane Fillod, F8CFE 623ba09ca8 resolve win32 header compatibility issue: no more HANDLE/timeval specific types
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1794 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-08-10 21:00:13 +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 7ec6ee0b12 remove unused buffered mode stuff
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1555 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-10-01 19:44:00 +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 b47cf01e33 termios replacement for win32 support
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1506 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-08-15 01:25:26 +00:00
Stéphane Fillod, F8CFE e0b2a7b4ac fix headers
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1435 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-04-07 22:42:11 +00:00
Stéphane Fillod, F8CFE 3a08190627 gcc3 fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1109 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-07-08 22:53:27 +00:00
Stéphane Fillod, F8CFE 8033d100b4 misc
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1064 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-06-17 20:59:51 +00:00
Stéphane Fillod, F8CFE 54f056d05d dump hex buffer even in error cases
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1045 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-04-23 22:03:51 +00:00
Stéphane Fillod, F8CFE ab2811115b fix a bug introduced by previous commit
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1024 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-03-12 19:28:52 +00:00
Stéphane Fillod, F8CFE b26d39f637 handle nul char in stopset
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1019 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-03-10 23:41:39 +00:00
Stéphane Fillod, F8CFE bc10e0eb97 parts moved from serial.[ch]
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@875 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-01-16 22:56:34 +00:00