Commit Graph

3982 Commits

Author SHA1 Message Date
Nate Bargmann
a915f1e69e Quell clang6 warning of format string not a literal
The warning was:

  CC       rotctl_parse.o
../../hamlib/tests/rotctl_parse.c:1012:50: warning: format string is not a string literal (potentially insecure)
      [-Wformat-security]
            snprintf(cmd_name, sizeof(cmd_name), parsed_input[0] + 1);
                                                 ^~~~~~~~~~~~~~~~~~~
../../hamlib/tests/rotctl_parse.c:1012:50: note: treat the string as an argument to avoid this
            snprintf(cmd_name, sizeof(cmd_name), parsed_input[0] + 1);
                                                 ^
                                                 "%s",
1 warning generated.
2018-11-05 20:07:34 -06:00
Nate Bargmann
3a6f3bac96 Quell clang6 warning of integer adsolute function
Thw warning was:

  CC       meade.lo
../../hamlib/meade/meade.c:226:8: warning: using integer absolute value function 'abs' when argument is of floating point type
      [-Wabsolute-value]
    if(abs(az - priv->target_az) > 5 || abs(el - priv->target_el) > 5)
       ^
../../hamlib/meade/meade.c:226:8: note: use function 'fabsf' instead
    if(abs(az - priv->target_az) > 5 || abs(el - priv->target_el) > 5)
       ^~~
       fabsf
../../hamlib/meade/meade.c:226:41: warning: using integer absolute value function 'abs' when argument is of floating point
      type [-Wabsolute-value]
    if(abs(az - priv->target_az) > 5 || abs(el - priv->target_el) > 5)
                                        ^
../../hamlib/meade/meade.c:226:41: note: use function 'fabsf' instead
    if(abs(az - priv->target_az) > 5 || abs(el - priv->target_el) > 5)
                                        ^~~
                                        fabsf
2 warnings generated.
2018-11-05 19:53:54 -06:00
Nate Bargmann
ff4f7e1235 Quell clang6 warning of absolute value function
The warning was:

  CC       optoscan.lo
../../hamlib/icom/optoscan.c:738:14: warning: absolute value function 'abs' given an argument of type 'long' but has parameter
      of type 'int' which may cause truncation of value [-Wabsolute-value]
        usec_diff = abs((state->timer_current.tv_usec) -
                    ^
../../hamlib/icom/optoscan.c:738:14: note: use function 'labs' instead
        usec_diff = abs((state->timer_current.tv_usec) -
                    ^~~
                    labs
1 warning generated.
2018-11-05 12:13:06 -06:00
Michael Black W9MDB
857f3060ee Remove TARGETABLE_MODE from ft3000 2018-11-03 16:01:05 -05:00
Nate Bargmann
982b90f754 Merge branch 'master' of https://github.com/mdblack98/Hamlib into mdblack98-master 2018-10-29 07:05:50 -05:00
Eriks Dobelis
0b71ba91a1 ft817: Moving delay value into #define section of the header 2018-10-29 08:46:42 +02:00
Michael Black W9MDB
f0bcffae36 Merge remote-tracking branch 'upstream/master' 2018-10-28 16:10:30 -05:00
Michael Black W9MDB
68fb9e3c21 Add FT-DX3000 definition and promote FT-DX5000 to Stable 2018-10-28 15:57:28 -05:00
Eriks Dobelis
1e849a6ba7 ft817: adding delay before next retry after returning from tx to rx 2018-10-28 20:50:39 +02:00
Nate Bargmann
1ecadcc594 Quell various defined but not used warnings from MinGW
Enclose various variable and function definitions in CPP macro blocks to quell
warnings when cross-compiling for Microsoft Windows using MinGW.
2018-10-27 20:49:20 -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
Nate Bargmann
b0ebeaeda4 Quell gcc 8.2.0 defined but not used warning
On Debian Buster gcc ((Debian 8.2.0-8) 8.2.0) was throwing the following
warning:

  CC       rigctl.o
../../hamlib/tests/rigctl.c:125:18: warning: ‘have_rl’ defined but not used [-Wunused-const-variable=]
 static const int have_rl = 0;
                  ^~~~~~~

and:

  CC       rotctl.o
../../hamlib/tests/rotctl.c:113:18: warning: ‘have_rl’ defined but not used [-Wunused-const-variable=]
 static const int have_rl = 0;
                  ^~~~~~~

Turns out I didn't have the readline-dev package installed.  As the have_rl
variable is wrapped in CPP macros, it indeed is not used when readline is not
available.
2018-10-25 18:26:25 -05:00
Nate Bargmann
ac540c82cc Quell gcc 8.2.0 warning of possible truncation
On Debian Buster gcc ((Debian 8.2.0-8) 8.2.0) was throwing the following
warning:

  CC       network.lo
../../hamlib/src/network.c: In function ‘network_open’:
../../hamlib/src/network.c:245:46: warning: ‘%s’ directive output may be truncated writing up to 511 bytes into a region of size 139 [-Wformat-truncation=]
         snprintf(msg,sizeof(msg),"connect to %s failed, (trying next interface)",rp->pathname);
                                              ^~
../../hamlib/src/network.c:245:9: note: ‘snprintf’ output between 44 and 555 bytes into a destination of size 150
         snprintf(msg,sizeof(msg),"connect to %s failed, (trying next interface)",rp->pathname);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Raising the size of the msg buffer to 1024 quelled the warning.
2018-10-25 16:58:51 -05:00
Nate Bargmann
2d7d3d21df Quell gcc 8.2.0 warning of possible truncation
On Debian Buster gcc ((Debian 8.2.0-8) 8.2.0) was throwing the following
warning:

  CC       ft991.lo
../../hamlib/yaesu/ft991.c: In function ‘ft991_set_split_mode’:
../../hamlib/yaesu/ft991.c:336:5: warning: ‘strncat’ output may be truncated copying 128 bytes from a string of length 128 [-Wstringop-truncation]
     strncat (restore_commands, priv->ret_data, NEWCAT_DATA_LEN-1);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

At least now the warning is gone...
2018-10-25 16:41:33 -05:00
Michael Black W9MDB
a3ea2864a7 Fix icmarine duplicate read 2018-10-25 08:37:59 -05:00
Michael Black W9MDB
aadd458b99 Ensure read_string value is terminated 2018-10-25 08:37:59 -05:00
Michael Black W9MDB
a95d1f1c87 Fix multi-mode-mapping 2018-10-25 08:37:59 -05:00
Michael Black W9MDB
ad4536d022 Fix icmarine duplicate read 2018-10-07 08:11:30 -05:00
Michael Black W9MDB
d0bb4de156 Ensure read_string value is terminated 2018-10-07 07:51:13 -05:00
Michael Black W9MDB
4f828f7215 Fix multi-mode-mapping 2018-10-03 11:29:15 -05:00
phaethon
d5968a3e9a Improving reliability working with radios cloning FT817 protocol (increase timeout, double reading frequency, checking ptt status after setting it) 2018-10-01 12:23:02 -05:00
Brian G. Lucas
9dad962473 Some calls to thd72_get_menu_item where passing wrong values for range check. 2018-10-01 12:12:37 -05:00
Michael Black W9MDB
13317afb0e Update power reading values for FT900 2018-09-16 13:02:17 -05:00
Michael Black W9MDB
e1196a1f22 Update power reading values for FT900 2018-09-13 15:38:42 -05:00
phl0
b2b20af07e
Ass support for CM108AH chipsets 2018-09-08 21:57:25 +02:00
Michael Black W9MDB
44b839159b Change ft100 RTTY to PKTUSB for compatibility with WSJT-X 2018-08-29 22:42:16 -05:00
Nate Bargmann
86bcdde20b Add ELAD backend info to NEWS 2018-08-21 06:19:42 -05:00
HB9EIK
0a4c71a788 Update copyright for fdm_duo.c 2018-08-21 06:07:09 -05:00
HB9EIK
bde028485a Update build system for ELAD backend 2018-08-21 06:07:09 -05:00
HB9EIK
3dcdda0b7c Update ELAD files 2018-08-21 06:07:09 -05:00
HB9EIK
339c56b1d1 Initial release ELAD FDM DUO 2018-08-21 06:07:09 -05:00
Nate Bargmann
ee7dc65e62 Update NEWS 2018-08-21 05:18:26 -05:00
Michael Black W9MDB
ee890449cd Fix kenwood SQ squelch set by adding rx# 2018-08-16 15:31:25 -05:00
Brian G. Lucas
a1cfb3804e In newcat_open(), initialize rig_id in case any subsequent commands need it. 2018-08-09 16:38:02 -05:00
Brian G. Lucas
9b2ba63b73 Fix RFPOWER level for FT-450D. It uses 5-100, rather than 0-255 that
the FT-450 does.
2018-08-09 16:19:24 -05:00
Nate Bargmann
ac83428f7b Merge branch 'master' of https://github.com/JeroenVreeken/Hamlib 2018-08-05 21:11:40 -05:00
Nate Bargmann
1c3f22a872 Advance to 4.0~git 2018-08-05 21:11:00 -05:00
Nate Bargmann
f632e71c67 Include section 7 pages in W32/64 binary builds 2018-08-02 07:57:52 -05:00
Nate Bargmann
478a7a25c1 Merge branch 'new_man_pages' 2018-07-29 22:11:31 -05:00
Nate Bargmann
5a79fcdbe1 Synchronize Texinfo manual with man7 pages
The Texinfo manual is now kept in sync with the project information
manual pages.  The Texinfo manual may be retired at some later date but
for now the two sets of documentation will be kept in sync.
2018-07-29 22:03:24 -05:00
Nate Bargmann
d984a58113 New project information manual pages
Project information manual pages (section 7) have been created from the
Texinfo manual that provide a set of general information pages about
Hamlib.
2018-07-29 22:00:14 -05:00
Nate Bargmann
e3f1e4adcf Utility man pages: minor edits 2018-07-29 21:59:15 -05:00
Nate Bargmann
b65a39db53 Update to current Windows build scripts
Scripts for both 32 and 64 bit build on MS Windows platforms and
associated information.
2018-07-29 21:56:55 -05:00
Nate Bargmann
f9b2f27373 Correct the -l option output header text 2018-07-29 21:38:54 -05:00
andz
75228aa974 Added Meade LX200 Protocol to Rotors
* Added new rotor module (18) for Meade telescope rotors
* Implemented all needed rotor functions
* Added README.md

* Tested with DS-2000 Rotor with Autostar 494 and 506 serial cable
* Tested on Linux (Debian) with rotctl and gpredict
2018-07-17 08:57:05 -05:00
Michael Black W9MDB
3027ca5f9a Force back to split after set_vfo A if needed\nFixes split getting turned off 2018-07-17 08:47:18 -05:00
c vw
993ba79c14 included doc/hamlib.html in .gitignore 2018-07-06 15:44:13 +02:00
Jeroen Vreeken
9108deab8b Merge branch 'master' of github.com:Hamlib/Hamlib 2018-06-30 16:11:31 +02:00
Jeroen Vreeken
0057b2f8b1 GPIO working after debugging 2018-06-30 16:09:56 +02:00
c vw
80633e6d2e Fixes for the piHPSDR backend. 2018-06-27 17:11:35 +02:00