Wykres commitów

33 Commity (3220c37ff2a714d4bd8166aeab2751f69e7a52fd)

Autor SHA1 Wiadomość Data
Michael Black 5438fe2905
Fix more cppcheck warnings in tmv7.c 2019-12-07 23:11:01 -06:00
Michael Black 6bf3b00c4f
astyle all files 2019-11-30 10:19:08 -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 W9MDB dcb8b3f91f Fix compile warnings for kenwood 2018-04-22 18:38:16 -05:00
Bill Somerville 0ab6d99ef5 Attempt to restore AI status on exit
Kenwood,  modern Yaesu  rigs and  many  SDRs use  an auto  information
mechanism that  broadcasts unsolicited rig state  changes, Hamlib does
not support this and turns  off the function.  Because several passive
devices rely  on this information  to detect band changes  for example
this change adds code to save the AI state on start up and restores it
on  exit. These  devices  do  no need  the  broadcasts  since when  an
application using Hamlib is running  as necessary state polling by the
application provides continuous rig state updates.
2015-11-29 18:26:39 +00: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 4a74db654a Clarify the handling of Kenwood CAT message terminators
There was an inconsistency in  whether the CAT terminator character is
included  in  returned  messages.   It  now  follows  the  comment  in
kenwood_transaction()  i.e. strips  of  the terminator  and returns  a
message length that reflects that.
2015-02-13 18:07:10 +00:00
Nate Bargmann 250efe9605 Remove set but unused variable errors in kenwood. 2011-08-25 10:43:02 -05:00
Nate Bargmann 8d16bebf40 Update LGPL header in Kenwood source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:35 -05:00
Stéphane Fillod, F8CFE f402c6c701 Wrap sscanf in order to workaround some locales where the decimal
separator (float format, ...) is not a dot.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2978 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-09-13 21:12:05 +00:00
Stéphane Fillod, F8CFE d812fdb6df fix old regression about mode handling on TH-D7, TH-G71, TM-V7, TM-D700
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2974 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-09-07 21:11:13 +00:00
Stéphane Fillod, F8CFE b9b97a0f25 - added FIG_FUNC_BC, RIG_PARM_BEEP, RIG_PARM_APO, RIG_LEVEL_VOXGAIN, RIG_LEVEL_VOXDELAY (stub)
- misc: some rig_debug() are missing ending \n
- better 64 bit portability
- TH-F7E fixes (RIG_FUNC_TBURST, RIG_FUNC_TSQL, RIG_FUNC_TONE, *_ctcss_tone, ..)


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2902 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-26 21:35:37 +00:00
Alessandro Zummo, IZ1PRB f9d06e6630 tmv7: removed EOM
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2887 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-04-24 13:52:14 +00:00
Alessandro Zummo, IZ1PRB e1c03296a4 Replace __FUNCTION__, which is gcc specific and was deprecated
a long time ago, with __func__, which is at least defined in C99.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2617 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-03 23:22:58 +00:00
Alessandro Zummo, IZ1PRB b8da433c98 thg71,tmv7,ts450s,ts690: verify rig id at rig_open
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2613 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-03 22:42:44 +00:00
Alessandro Zummo, IZ1PRB c6cdfe91a8 Remove const from priv_caps to allow kenwood_init to initialize default values if they're missing
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2600 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-28 23:30:59 +00:00
Nate Bargmann, N0NB 30f66de479 Several Kenwood patches from Alessandro Zummo, azummo-lists@towertech.it
Among the changes:

 I finally had the time to build the CAT interface for my TS450 and
 discovered a couple of new commands.

 MX; MX0; MX1; is used to activate the AIP function
 FL; FLXXXYYY; is used to set the filters.

 I made a perl script to try every possible two-letters command. If
 amyone is interested, at their own risk, just ask.

 I've then modified and optimized the kenwood driver:

 - moved MD_ defined to .h
 - added init/cleanup
 - ts450_get_mode -> kenwood_get_mode_if
 - support reading memory channel freq within kenwood_get_freq
 - added kenwood_safe_transaction as an helper with result len check
 - added kenwood_get_if
 - added get_level for RIG_LEVEL_CWPITCH
 - set/get for RIG_FUNC_AIP
 - replaced ts140/680 get_mode and get_freq
 - removed the delay on the ts450. it works just fine without it.

=============================
 the attached patch requires the first one I sent and
 addresses a few remaining issues

 - converted 8 spaces to tabs
 - added kenwood_mode_table
 - added kenwood_simple_transaction helper func
 - use kenwood2rmode and rmode2kenwood where possible
 - some code cleanup
 - use kenwood_safe/simple_transaction where possible
 - added kenwood_get_mem_if (ts140,ts450,ts680,ts690,ts850)
 - added kenwood_get_channel (ts450,ts850)
 - added FUNC_FINE_STEP (commented out, we have no more func slots)
 - added LEVEL_CWPITCH (set)
 - no reason to have ts850_set_func, ts850_set_level
 - ... ts480_get/set_ant, ts480_set_func
 - ... ts570_set/get_ant, ts570_get_channel, ts570_get_rit
 - ... ts680_set_func
 - ... ts790_get_mode, ts790_get_vfo

 this patch is a bit more extensive and tested only on the TS450.
 feedback will be appreciated.

 where I removed code I took care to verify that the generic
 code in kenwood.c worked in the same way.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2591 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-23 03:24:42 +00:00
Stéphane Fillod, F8CFE 8159777ec1 chan_list fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2347 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-05-04 21:23:26 +00:00
Joop Stakenborg, PG4I 28b2cbbfa0 long long really needed here? - patch by diane Bruce
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2105 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-04-13 19:43:49 +00:00
Joop Stakenborg, PG4I c2df1f92a8 make sure we use ack_len=0 for functions that return nothing (set functions)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2093 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-03-14 20:06:46 +00:00
Joop Stakenborg, PG4I 8ff672d34c more unsigned char->char and int->size_t transitions
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2091 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-03-12 09:02:38 +00:00
Stéphane Fillod, F8CFE 449283c25c remove unused variables
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1976 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-04-03 20:40:21 +00:00
Stéphane Fillod, F8CFE cb589fcd25 account for improvements
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1975 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-04-03 20:23:19 +00:00
Stéphane Fillod, F8CFE 3bfe70ab67 don't export local functions, make them static
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1927 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-02-24 22:35:24 +00:00
Stéphane Fillod, F8CFE cccf1318ce second pass at getting rid of "ll" immediate literal format (64bit int)
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1904 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-01-25 00:22:14 +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
Thierry Leconte, F4DWV cdde048ca1 fix channel desc and channel name save
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1896 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-12-28 12:59:41 +00:00
Thierry Leconte, F4DWV 543bb2821a add its own set/get_channel
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1894 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-12-28 11:08:00 +00:00
Thierry Leconte, F4DWV d3b5ce1920 try to be nice with sgcontrol :
-add dummy get_powerstat
-add str_val
-add tx/rx ranges
-fix channel_list


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1868 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-11-11 17:53:38 +00:00
Stéphane Fillod, F8CFE b5db6239bb * removed useless kenwood_init/kenwood_cleanup
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1752 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-06-13 12:35:30 +00:00
Thierry Leconte, F4DWV a914b9a676 fix caps
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1711 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-03-21 18:26:46 +00:00
Thierry Leconte, F4DWV 2fced351d7 upgrade to beta level
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1709 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-03-21 16:58:07 +00:00
Stéphane Fillod, F8CFE 637c51cb58 Initial release - clone from thg71
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1705 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-03-20 10:23:43 +00:00