Wykres commitów

72 Commity (6f967a68d5a6c0fda3e0d4092dde54eb6ffd4c32)

Autor SHA1 Wiadomość Data
Mike Black W9MDB 6f967a68d5 Make pthread.h a default include and remove config.h from being included in rig.h
https://github.com/Hamlib/Hamlib/milestone/14
2022-08-23 17:20:03 -05:00
Mike Black W9MDB 43765cd111 Reduce debug a bit 2022-06-06 08:16:45 -05:00
Mike Black W9MDB 3096ad8b68 Add rig_settings_load_all to misc.h 2022-05-13 16:31:22 -05:00
Mike Black W9MDB 5c0e98fe56 First phase of .hamlib_settings -- currently saves sharekey in current directory when rigctld -A is run
https://github.com/Hamlib/Hamlib/issues/813
https://github.com/Hamlib/Hamlib/issues/985
2022-04-29 16:30:00 -05:00
Mike Black W9MDB d44ca477ae Make the RETURNFUNC message more distinctive for debugging purposes 2022-02-13 15:23:14 -06:00
Mike Black W9MDB 4ef62a8436 Export spaces() functions
https://github.com/Hamlib/Hamlib/issues/946
2022-01-31 09:28:52 -06:00
Mike Black W9MDB a33f1b7920 Add ENTERFUNC2 and RETURNFUN2 for functions that don't have rig structure 2022-01-31 08:34:06 -06:00
Mike Black W9MDB 7b4b7ee630 Add a depth count to debug statements to help understand calling sequences
First call into rig functions is level 1
Top level like rigctl, rigctld is level 0
Non-depth calls are internal debug statements -- which can be modified to also show levels but that's a whole lot of statements not really necessary
Normal calls from other clients will be level 1
2022-01-30 23:37:01 -06:00
Mike Black W9MDB 1beebfc835 Make set_transaction functions use intra process mutex -- Phase 1
Phase 2 will be inter-process named mutexes
https://github.com/Hamlib/Hamlib/issues/942
2022-01-23 09:01:06 -06:00
Mike Black W9MDB e2bb11aa4c Change sprintf to SNPRINTF in misc.c, network.c, and rig.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 15:07:49 -06:00
Mike Black W9MDB f801244fb6 Change sprintf to SNPRINTF in misc.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 15:03:11 -06:00
Mike Black W9MDB a77f18b79a Add error message to rig_debug output 2021-12-28 07:33:32 -06:00
Mike Black W9MDB 196be77da4 Revert "Add error message to debug statements with error codes -- a little more user friendly"
This reverts commit 016bcfcf39.
This might have affected DLL compatiblity
2021-12-26 09:10:21 -06:00
Mike Black W9MDB 016bcfcf39 Add error message to debug statements with error codes -- a little more user friendly 2021-12-26 08:02:22 -06:00
Mikael Nousiainen 1d067d6a43 Merge branch 'master' into async-reader 2021-12-12 23:05:48 +02:00
Mikael Nousiainen 56c95b1529 Merge upstream changes and fix conflicts 2021-12-12 23:05:26 +02:00
Mike Black W9MDB 759918aac6 Fix date_strget DLL export
https://github.com/Hamlib/Hamlib/issues/882
2021-12-07 12:17:02 -06:00
Mike Black W9MDB 674a9868d9 Implement ISO8601 time standard in more places.
Debug time now shows localtime + utc offset
Rigs that can set the clock now can set either local or utc time on the rig
Icom rigs can only display clock#1 right now so users may want either local or utc
So here are IC7300 examples
rigctl -m 3073 -r com3 -s 115200 set_clock local
rigctl -m 3073 -r com3 -s 115200 set_clock utc
2021-12-06 10:23:18 -06:00
Mikael Nousiainen d857f18163 Initial implementation of: reader thread for async handling of rig data, UDP multicast publisher routine and rig state poll thread routine. The reader thread can correctly handle asynchronous data, such as transceive or spectrum data. Work in progress: multi-platform code for I/O routines still missing and the poll routine is not yet in use. Tested briefly on an IC-7300 so far. 2021-11-28 20:52:29 +02:00
Mike Black W9MDB b17d681fc2 More portable debug method -- should work on any compiler 2021-11-08 10:28:28 -06:00
Mike Black W9MDB 5eb169edc1 Add new method for debugging calling functions -- need to test with multiple compilers to see if it compiles OK 2021-11-08 10:19:12 -06:00
Mike Black W9MDB cc886b46f5 Make parse_hoststr delcaration match implementation 2021-09-11 11:13:23 -05:00
Mike Black W9MDB 4bfd71f91f Fix Icom split and implement reverse split
These should work now from rigctl and via the API
S VFOB 1 VFOA
S Sub 1 Main
https://github.com/Hamlib/Hamlib/issues/754
2021-08-02 23:37:31 -05:00
Mike Black W9MDB bcfd59f3af Move date_strget to misc.c 2021-05-21 12:33:42 -05:00
Mike Black W9MDB b74bf05541 astyle misc.c and add CRC function for future use 2021-04-17 22:47:14 -05:00
Michael Black W9MDB 1ba72fa725 Improve caching
https://github.com/Hamlib/Hamlib/issues/280
https://github.com/Hamlib/Hamlib/issues/606
2021-03-15 11:16:11 -05:00
Michael Black W9MDB 7b58661d12 Fix RETURNFUNC -- when RETURNFUNC(function) was used is was calling the function multiple times
https://github.com/Hamlib/Hamlib/issues/595
2021-03-10 08:24:33 -06:00
Michael Black W9MDB 2fa65f11fd Fix rc return in RETURNFUNC to parenthesize it 2021-03-08 09:56:59 -06:00
Michael Black W9MDB c3a1b489b7 Add return code to debug statements
Remove some RETURNFUNC that don't work with this change
2021-03-05 11:51:56 -06:00
Michael Black W9MDB 82126a4f09 Phase 1 of changing sprintflst functions to use buffer length
https://github.com/Hamlib/Hamlib/issues/580
2021-03-03 08:03:18 -06:00
Michael Black W9MDB 252f939105 Add do while for RETURNFUNC -- helps catch syntax errors 2021-02-25 06:35:56 -06:00
Michael Black W9MDB 4c68bc25af Improve formatting of RETURNFUNC macro
003bc93dd0 (commitcomment-47545928)
2021-02-25 06:02:06 -06:00
Michael Black W9MDB ad9d464822 Remove MainC from caching due to effect on rig_caps structure offsets
https://github.com/Hamlib/Hamlib/issues/537
2021-02-08 12:54:33 -06:00
Michael Black W9MDB 03924db38c Modify __FILE__ to use __FILENAME__ macro to avoid full path in misc.c 2021-01-28 10:25:05 -06:00
Michael Black W9MDB dd0765309e Added CACHE_RESET macro
newcat_set_cmd_validate now queries VFO freq instead of using cache
2021-01-19 07:17:07 -06:00
Michael Black W9MDB ce96f42483 Fix RETURNFUNC in misc.h 2021-01-17 17:16:50 -06:00
Michael Black W9MDB c5c60f0f43 First phase of improving debug messages 2021-01-17 07:25:28 -06:00
Mikael Nousiainen 7cbe39d5ab Add routines to convert between morse code dot duration and milliseconds. Implement Yaesu break-in delay level correctly using these conversion routines. 2020-11-07 15:03:54 +02:00
Michael Black W9MDB 0fef98fc43 remove some cppcheck statements not needed anymore 2020-10-29 12:52:54 -05: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 W9MDB e092a4a0a4 rigctld -T ::1 now works with rigctl -r ::1
More IPV6 testing needed on Windows and MacOS
Still not binding to link local addresses to be addressed next
https://github.com/Hamlib/Hamlib/issues/29
2020-06-21 17:47:04 -05:00
Michael Black W9MDB 815db24852 Fix MSVC compile by removing unistd.h and defining our own rig_useconds_t
https://github.com/Hamlib/Hamlib/issues/301
2020-06-13 17:40:47 -05:00
Michael Black W9MDB 1317bb8034 Fix vfo_fixup link error
Make vfo_fixup a HAMLIB function so it can be used elsewhere
https://github.com/Hamlib/Hamlib/issues/299
2020-06-12 08:28:05 -05:00
Michael Black W9MDB d540def11b Change return type of elapsed_ms 2020-05-16 21:33:14 +02:00
mdblack98 3794bc5a0a Fix cppcheck warnings 2020-05-05 09:38:36 -05:00
mdblack98 eb7829bd06 Add caching for the Yaesu IF command
It should speed up the WSJT-X/JTDX sequence of v,f,m,t by a fair bit removing two unnecessary IF commands that should get cached
2020-04-26 15:44:38 -05:00
Michael Black b7e8f01701 Fix mingw32 DLL linkage of hl_sleep 2020-01-10 15:58:16 -06:00
Michael Black 772b1ba2c1 Fix rig_idx2settings for 64-bit sprintf_list functions 2018-12-31 15:39:49 -06:00
Michael Black 64b35ccbee Add PRXll macro for 64-bit use 2018-12-21 16:46:48 -05:00
Nate Bargmann ab3e6bb5a5 Formatted src/ to final coding guidelines 2017-10-04 21:32:08 -05:00