Wykres commitów

30 Commity (d2504ff9088136aba2500d267f11673c649c4f17)

Autor SHA1 Wiadomość Data
Michael Black dedaa9bf99
Fix cppcheck warning in optoscan.c 2020-01-12 11:31:23 -06: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 ed339b1c2b
Add sleep and usleep macros so all sleeps use nanosleep 2019-12-22 11:17:22 -06:00
Michael Black 444fcfa575 Replace XOPEN with AC_USE_SYSTEM_EXTENSIONS 2019-12-10 15:54:12 -06:00
Michael Black 3220c37ff2
Change XOPEN to 600 2019-12-10 14:50:24 -06:00
Michael Black 3a3d66d52d Now compiles with -std=c99 and no c99 warnings 2019-12-09 22:45:37 -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 2e9129bd06
Fix some cppcheck warning in icom 2019-12-06 17:45:27 -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
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
Nate Bargmann 785e926db9 Reformat optoscan.c to Linux Style
Use astyle to format to Linux Style.
2016-02-14 18:08:54 -06:00
Nate Bargmann c26b893498 Quell clang warning from optoscan.c
clang warned that lvl_len could be used unitialized in a call to
rig_debug.  Initialze lvl_len to 0 as its assignement is inside an if
conditional.

Also reported by Greg Troxel.
2016-02-13 21:49:51 -06:00
Nate Bargmann e78f9be94e Remove set but unused variable errors in icom. 2011-08-25 10:42:37 -05:00
Nate Bargmann 78285ab8eb Update LGPL header in Icom source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:35 -05:00
Alexandru Csete OZ9AEC 4f086db73f Fixed type mismatches between signed and unsigned char.
There are a few very suspicious 'if' statements in icom.c and frame.c


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2134 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-10-07 20:45:40 +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 643fb5feae * ser_ptt*/ser_dcd* are gone. Try to not mix low level serial stuff with
high level Hamlib stuff. Added ser_get_cts,ser_get_dsr,ser_get_car.
* better error code cascading


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1861 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-10-02 20:18:16 +00:00
Stéphane Fillod, F8CFE fe10198f27 remove deprecated RIG_LEVEL_SQLSTAT and fix get_dcd, fix str_cal in icom backend
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1853 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-09-26 08:35:05 +00:00
Stéphane Fillod, F8CFE 6985ec78ca converted RIG_LEVEL_STRENGTH to RIG_LEVEL_RAWSTR. RIG_LEVEL_STRENGTH is then derived from calibration table
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1583 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-11-16 17:14:44 +00:00
Stéphane Fillod, F8CFE d62dfa3c37 include fixup, stdio.h is not included by rig.h anymore
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1554 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-10-01 19:40:15 +00:00
Stéphane Fillod, F8CFE dadc34efef Patches for pipelined tuning and OS535 from Michael Smith
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1533 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-09-07 18:30:28 +00:00
Stéphane Fillod, F8CFE 343deb6f59 Support for pipelined tuning, including DCD on CD line.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1510 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-08-17 22:39:07 +00:00
Stéphane Fillod, F8CFE 426ceae8a7 Patch from Michael Smith adding support for RIG_LEVEL_AF,
as well as tape jack support, 5khz window support, and support
for reading various status bits from the os456.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1474 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-05-19 06:57:44 +00:00
Stéphane Fillod, F8CFE e4caf7bd64 should always compile test before commit...
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1437 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-04-09 06:43:54 +00:00
Stéphane Fillod, F8CFE 524341a0f7 Patch from Michael Smith for the OS456:
- adds SQL status and signal strength support
- fixes the signal strength scaling
- adds code to support get_ctcss_tone(), get_dcs_code() and rig_recv_dtmf()


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1436 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-04-09 06:37:37 +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 153b6a0595 misc fixes as suggested by John R. Marshall
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1014 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-03-07 22:58:47 +00:00
Stéphane Fillod, F8CFE 61428b3e97 Initial release
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1002 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-03-06 21:10:08 +00:00