Wykres commitów

35 Commity (c2cab5465071ccecd6ac568fbb472eade9fa721a)

Autor SHA1 Wiadomość Data
Michael Black W9MDB c2cab54650 Change all FILPATHLEN names to HAMLIB_FILPATHLEN 2021-03-09 10:16:18 -06:00
Michael Black W9MDB 6fbf33e8ed Undo changes on testrig.c 2021-01-09 23:17:37 -06:00
Michael Black W9MDB 6e8b90aeec Fix cppcheck warnings 2021-01-09 15:19:19 -06:00
Michael Black W9MDB 7a9e909b61 Add Barrett 950
https://github.com/Hamlib/Hamlib/issues/483
2020-12-30 23:15:42 -06: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
Michael Black bda5feb1bd More cppcheck changes 2020-03-23 10:13:02 -05:00
Michael Black 8eb09c2a38 More cppcheck fixes 2020-03-23 07:52:01 -05:00
Michael Black 2fca5f49b8
Remove hl_sleep.h as no longer needed 2019-12-24 15:21:06 -06:00
Michael Black 9b9a6c55f5
Fix cppcheck warning in testrig.c 2019-12-23 23:36:14 -06:00
Michael Black 2b5f01fb75 64 bit mods to netrigctl.c testrig.c 2018-12-21 23:51:54 -05:00
Nate Bargmann b692fb22ef Formatted tests/ to final coding guidelines 2017-10-06 18:58:42 -05:00
Nate Bargmann d489b8bcb5 Apply formatting to 'tests/' directory
Format per style guide.
2017-08-10 05:46:12 -05:00
Nate Bargmann 6ea09a138a Clean up build system, fix test programs
Clean up various left over commented lines from dlopen to single
libhamlib transition.  Remove unneeded configure variables.

Correct minor inconsistencies in Makefile.am files.

Define a new variable, READLINE_LIBS, so that only programs that offer
Readline support are linked against it.

Fix various compilation warnings and errors in test files revealed with
'make check' on MinGW.

Define rig and rotor backends to (mostly) be built in alphabetical
order.
2013-12-10 20:14:22 -06:00
Nate Bargmann c39b51327b Revise test for MinGW with sleep()
Revise the preprocessor conditional test for MinGW variables.  Tested on
all of my MinGW installations.  The prior test was broken by MinGW 3.0
on Debian Unstable.
2013-09-19 21:59:42 -05:00
Nate Bargmann 1fd85febee MinGW build: Fix sleep() substitution
MinGW does not natively support the POSIX sleep() function so we have
had an override that was a part of the GR_PWIN32 macro and included in
the generated config.h file.  When compiling for Windows on POSIX using
MinGW, Autotools will detect sleep() and set HAVE_SLEEP which prevented
the substitution from being included in the source.  Adding a test for
_WIN32 (set by MinGW's gcc) then caused a warning from src/network.c on
POSIX about winsock2.h needing to be included before windows.h.  As
config.h needed to be included first, the solution to break out the
substitution that includes windows.h into its own file.  This patch
provides that solution and allows the code to compile cleanly on POSIX,
using MinGW on both POSIX and Windows, and on Cygwin.
2013-07-29 12:38:22 -05:00
Nate Bargmann f82184cbf5 Add RIT and XIT as rig_set/get_func() members
In response to a long standing request from Tor, N4OGW, and others, RIT
and XIT are added as members for the rig_set/get_func() members.
"RIT"/"XIT" have been added as tokens.  The dummy rig backend and
testrig.c have been updated for these new functions.

Applications should test a backend with the rig_has_set/get_func() and
test for RIG_FUNC_RIT or RIG_FUNC_XIT.  A non-zero result indicates
these functions are implemented by a given rig backend.  It will take
some time for all backends to migrate to this new implementation.  Once
implemented, RIT or XIT should be set to '0' to 'clear' the value
without deactivating the rig's RIT/XIT function.  The dummy/dummy.c file
can be used as a simple guide for backend authors implementing this
behavior.
2013-01-15 12:47:47 -06:00
Nate Bargmann 1229a0a42a Assure NULL terminated strings in tests programs.
Various strncpy operations could result in a port pathname that is not a
NULL terminated string as the allowed string length is the same size as
the buffer per the strncpy manual page.  This is corrected by assuring
that the allowed length is FILPATHLEN - 1.
2012-01-07 20:36:50 -06: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 23369a0c25 * abstract 64bit int format type to cope with portability issues.
introduce PRIll (printf format) and SCNll (scanf) in misc.h.
  This needs to have config.h included beforehand.
* do likewise with freq_t type (double) in rig.h
  FREQFMT is deprecated.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1903 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-01-24 23:04:35 +00:00
Stéphane Fillod, F8CFE 215494cb63 FREQFMT fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1865 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-11-08 22:05:27 +00:00
Stéphane Fillod, F8CFE 99915b6c57 misc sscanf format fix
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@786 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-20 22:59:09 +00:00
Stéphane Fillod, F8CFE bdfe0b969a 'path' field renamed in port_t
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@608 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-07-25 21:59:55 +00:00
Stéphane Fillod, F8CFE 593c4a6488 rig_probe works ! (at least on 706MKIIg)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@540 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-10 22:31:44 +00:00
Stéphane Fillod, F8CFE c1cb77c643 new automatic backend loading and sparse rig_model scheme
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@529 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-04 21:17:53 +00:00
Stéphane Fillod, F8CFE da19dd9a47 new port_t design
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@523 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-04 17:01:21 +00:00
Stéphane Fillod, F8CFE 76dbe06163 * fixed RIG_PASSBAND_OLDTIME, rig model is taken from arg
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@481 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-05-04 22:46:47 +00:00
Stéphane Fillod, F8CFE a197911795 * RIG_PASSBAND_OLDTIME
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@454 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-04-22 14:48:02 +00:00
Frank Singleton, VK3FCS 85f6847750 Added some new freq/mode combinations.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@294 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-12-13 01:27:43 +00:00
Frank Singleton, VK3FCS 21db3793b9 added ptt handling example, stand back !
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@291 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-12-09 21:50:09 +00:00
Stéphane Fillod, F8CFE 748d949556 * updates since the new API now requires a target VFO to be specified.
Mainly, RIG_VFO_CURR is used, which should ensure the same behaviour
  of the tests programs as before.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@286 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-12-05 22:04:44 +00:00
Stéphane Fillod, F8CFE 8edc54f04b * [sg]et_mode is now responsible for setting/getting the passband
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@282 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-12-05 19:32:48 +00:00
Frank Singleton, VK3FCS 4e312b334e more set_freq() examples
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@269 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-11-25 21:52:41 +00:00
Frank Singleton, VK3FCS a5bcaa48ca added post_write_delay
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@204 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-09 01:17:20 +00:00
Stéphane Fillod, F8CFE 942de4b6f4 added dynamic loading support, and rig_get_strength call
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@200 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-08 21:48:52 +00:00
Stéphane Fillod, F8CFE 13bad9faee Moved from ../common
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@174 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-01 12:53:01 +00:00