Wykres commitów

112 Commity (d2504ff9088136aba2500d267f11673c649c4f17)

Autor SHA1 Wiadomość Data
Michael Black b19ae79cd0
Fix cppcheck warning in usrp_impl.cc 2020-01-12 23:18:35 -06:00
Michael Black abd8b42c2b
Fix cppcheck warning in si570avrusb.c 2020-01-12 23:16:54 -06:00
Michael Black df2e8a5428
Fix cppcheck warning in hiqsdr.c 2020-01-12 23:12:40 -06:00
Michael Black 36c3ac9c4c
Fix cppcheck warning in funcube.c 2020-01-12 23:11:39 -06:00
Michael Black a106c79ab8
Fix cppcheck warning in funcube.c 2020-01-12 23:10:47 -06:00
Michael Black 8fa8111588
Fix cppcheck warning in fifisdr.c 2020-01-12 23:09:50 -06:00
Michael Black e24f301989
Fix cppcheck warning in elektor507.c 2020-01-12 23:08:44 -06:00
Michael Black 2505c56ea1
Fix cppcheck warning in elektor304.c 2020-01-12 23:08:35 -06:00
Michael Black e6cf0be165
Fix cppcheck warning in dwt.c 2020-01-12 23:06:50 -06:00
Michael Black 284e8bacfd
Fix cppcheck warning in drt1.c 2020-01-12 23:05:01 -06:00
Michael Black 6b4731b95e
Fix cppcheck warning in dds60.c 2020-01-12 23:04:17 -06:00
Michael Black e87f5ddf72
Fix cppcheck warning in si570avrusb.c 2020-01-12 11:41:40 -06:00
Michael Black e2e3d5a606
Fix cppcheck warnings in xi570avrusb.c 2019-12-18 23:00:34 -06:00
Michael Black 69b8b1dfa7
Fix cppcheck warnings in xi570avrusb.c 2019-12-18 22:59:59 -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 56d096fd1a
Fix cppcheck warnings in si570avrusb.c 2019-12-07 23:47:41 -06:00
Michael Black ba168e2c75
Fix cppcheck warnings in fifisdr.c 2019-12-07 23:41:30 -06:00
Michael Black 1b7b5bb941
Fix cppcheck warnings in elektor507.c 2019-12-07 23:40:28 -06:00
Michael Black 75a8f23045
Fix parenthesis in elektor304.c 2019-12-07 23:40:03 -06:00
Michael Black dc5b9a9993
Fix cppcheck warnings in elektor304.c 2019-12-07 23:37:29 -06:00
Michael Black 535da9ef2e
Fix cppcheck warnings in drt1.c 2019-12-07 23:35:30 -06:00
Michael Black 9284676a3e
Fix compile warnings for MinGW on Debian Stretch 2019-11-30 18:28:15 -06:00
Michael Black 6bf3b00c4f
astyle all files 2019-11-30 10:19:08 -06:00
Michael Black 72087f1b10
Change all __FUNCTION__ to __func__ 2019-11-30 10:16:28 -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 73c1ecd165
Change freq & chan struct start/end to avoid colliding with LUA SWIG start/end 2019-08-17 23:20:48 -05:00
Nate Bargmann 82e31653a1 Quell gcc 8.2.0 warning of uninitialized value
On Debian Buster gcc ((Debian 8.2.0-8) 8.2.0) was throwing the following
warnings:

  CC       funcube.lo
../../hamlib/kit/funcube.c: In function ‘funcubepro_get_level’:
../../hamlib/kit/funcube.c:783:87: warning: ‘au8BufOut[3]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     __func__, au8BufOut[0] & 0xFF, au8BufOut[1] & 0xFF, au8BufOut[2] & 0xFF, au8BufOut[3] & 0xFF);
                                                                              ~~~~~~~~~^~~
../../hamlib/kit/funcube.c:783:66: warning: ‘au8BufOut[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     __func__, au8BufOut[0] & 0xFF, au8BufOut[1] & 0xFF, au8BufOut[2] & 0xFF, au8BufOut[3] & 0xFF);
                                                         ~~~~~~~~~^~~
../../hamlib/kit/funcube.c:783:45: warning: ‘au8BufOut[1]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     __func__, au8BufOut[0] & 0xFF, au8BufOut[1] & 0xFF, au8BufOut[2] & 0xFF, au8BufOut[3] & 0xFF);
                                    ~~~~~~~~~^~~
../../hamlib/kit/funcube.c: In function ‘funcubepro_set_level’:
../../hamlib/kit/funcube.c:730:87: warning: ‘au8BufOut[3]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     __func__, au8BufOut[0] & 0xFF, au8BufOut[1] & 0xFF, au8BufOut[2] & 0xFF, au8BufOut[3] & 0xFF);
                                                                              ~~~~~~~~~^~~
../../hamlib/kit/funcube.c:730:66: warning: ‘au8BufOut[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     __func__, au8BufOut[0] & 0xFF, au8BufOut[1] & 0xFF, au8BufOut[2] & 0xFF, au8BufOut[3] & 0xFF);
                                                         ~~~~~~~~~^~~

Initialize au8BufOut and au8BufIn to 0 to quell the warning.
2018-10-25 20:44:59 -05:00
Michael Black W9MDB 20d1818af4 Fix compile warnings for kit 2018-04-22 18:38:16 -05:00
dl1ksv 6bac8422f3 Adding correct get/set functions for LNA- Mixer- IF gain of the FuncubePro+ 2018-04-22 11:35:57 -05:00
dl1ksv 87a5342a2f Switching from sprintf to snprintf to avoid possible seqfaults
Workaround for fldigi
fldigi treats zero frequency as error and disables hamlib.
So if the device rports zero frequency return 1 Hz instead,
so the user can switch to the favored frequency
2018-01-22 12:44:16 +01:00
Michael Black W9MDB 0b1a58d308 Fixed indentation warnings detected by newer gcc
Fixed one error discovered by these warnings in easycomm.c
2017-06-28 18:00:20 +01:00
dl1ksv bb11fa9107 Initial controls for the rs-hfiq sdr 2017-05-29 13:12:52 +02:00
Bill Somerville 6c342217bf Fix some endian issues in the si570/AVR SDR back ends
These issues appeared when used on a Power PC machine, big endian,
with Linux.
2017-02-12 18:17:24 +00:00
Michael Black 199111bcc4 Changed some modules to LGPL in lieu of GPL 2016-10-31 11:05:24 -05:00
Bill Somerville 222ad74de7 Add RIG_PASSBAND_NOCHANGE as possible set_{split_,split_freq_,}mode argument
This change  allows the set_mode  functions to leave the  rig passband
unchanged  if required.  For the  few rigs  that do  not have  explcit
passband width control either current state is read and rewritten or a
"normal" width  is chosen e.g. select  a normal width when  there is a
choice like CW and CW-NARROW.
2016-04-19 21:27:52 +01:00
Nate Bargmann 6a3214fd43 Apply Linux C style
Update files modified to support libusb-1.0.
2016-02-21 14:56:44 -06:00
Nate Bargmann 9ec98e0fe3 Check for libusb-1.0/libusb.h
Some distributions--Debian and Alpine tested--put libusb.h under the
libusb-1.0 directory.  Test for its presence and if found define
HAVE_LIBUSB_1_0_LIBUSB_H.  Also test for HAVE_LIBUSB or
HAVE_LIBUSB_1_0_LIBUSB_H and conditionally include the correct header
file in the sources.
2016-02-15 08:10:07 -06:00
Stephane Fillod 8d7697c3bd Migrating from libusb-0.1 to libusb-1.0 2016-02-14 18:02:26 +01:00
Ladislav Vaiz df114a64bc Initial support for FUNcube Dongle Pro
I wrote first support for new version of FUNcube Dongle. Differences
against original FCD are changed USB PID and wider frequency range.

73 Lada, OK1ZIA

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2014-04-27 10:36:59 -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
Hans Van Ingelgom 840ef67a85 Added Peaberry V1 and V2 models
On the Peaberry forum, we have a thread with some hamlib patches for the
Peaberry SDR (a softrock-like transceiver). Both version 1 and version 2
have been implemented and tested.

There are two patches: the first one, made by me (ON8VQ) adds support
for the two radio's, and the second one, made by R2AEE, fixes the tuning
(using PICUSB commands instead of AVRUSB).

The patches are available here:
http://ae9rb.com/forum/viewtopic.php?f=4&t=166

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-09-20 14:34:21 -05:00
Ladislav Vaiz f632695131 Android build updates for monolithic build
Android is now built as a static library.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-09-19 07:25:08 -05:00
Nate Bargmann 332a04b7cd Clean up backend Makefile.am files
Moved all backend *.h files into the SOURCES primary as Automake
documentation states all source file types should be listed.  This
causes Automake to include *.h files in rebuild rules for the targets.

Removed the '-DIN_HAMLIB' assignment from the CFLAGS primary in each
backend and assigned it to AM_CPPFLAGS in configure.ac.  The effect is
the same and it simplifies the backend Makefile.am files.

Removed all commented lines.
2013-09-16 21:51:39 -05:00
Remi Chateauneu 60019c9444 Monolitic libraries. 2013-09-08 14:56:28 +01:00
Nate Bargmann ea97c7c3e9 Preserve CFLAGS & CXXFLAGS for the configure user
The Automake manual makes it clear that certain user variables such as
CC, CFLAGS, CXXFLAGS, CPPFLAGS, and so on are to be preserved for the
user running configure.  This patch cleans up such assignments and
assures that PTHREAD_CFLAGS and so forth are applied to those targets
that require it.
2013-05-25 06:00:36 -05:00
Ladislav Vaiz 6d4295af2c Add Android build support
Android makefile fragments are distributed as extra distribution files
by the GNU build system but are otherwise ignored.  The Android build
support is independent and does not rely on the GNU build system.

See android/README.android for more info.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-04-26 22:31:56 -05:00
Volker Schroer 871d8a44a2 Extension of si570avrusb for SDR Kit of Funkamateur
Adds rig model 2515, Funkamateur Sdr

Signed-off-by: Volker Schroer <dl1ksv@gmx.de>
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-11-25 13:47:46 -06:00
Kamal Mostafa 3466512dbd Fix spelling errors 2012-08-21 19:54:50 -07:00
Nate Bargmann be2fefcf18 Update version of modified backends
Per Stephane's request, updated the version string of backends modified
since 1.2.14 release.  Newly added backends were left alone.
2012-02-02 20:10:37 -06:00
Stephane Fillod cd79fca440 HiQSDR: misc caps changes 2012-01-30 23:25:35 +01:00