Mike Black W9MDB
a83eb3bf42
astyle files for 4.5 release
2022-07-27 17:16:17 -05:00
Mike Black W9MDB
627ec83652
Change malloc to calloc
2022-07-27 10:26:08 -05:00
Daniele Forsi IU5HKX
7a132e2703
Remove unused includes
...
Removes includes of stdio.h stdlib.h string.h unistd.h
2022-07-24 17:08:57 +02:00
Daniele Forsi IU5HKX
4dfe46edbb
Remove unused includes related to times and dates
...
Removes includes of time.h sys/time.h hamlibdatetime.h
2022-07-23 18:12:10 +02:00
Mike Black W9MDB
1b64214032
Reduce debug in serial.c
2022-05-03 12:12:25 -05:00
OK1CTR
83e5b14cf6
Manually applied diff from older HamLib version.
2022-02-23 22:36:57 +01:00
Mike Black W9MDB
8c34ce1a2d
astyle source code
2022-02-05 15:27:43 -06:00
Mike Black W9MDB
68e121d82c
Change all to remove HAVE_CONFIG dependency and include <hamlib/config.h> by default
...
This is necessary to keep alignment between the client view of rig->state and the shared libarary view
Including PTHREAD functions in rig->state necessitated this as HAVE_PTHREAD only defined during hamlib compilation.
Clients including hamlib/rig.h did not pick up all the HAVE* config variable that control what gets included
https://github.com/Hamlib/Hamlib/issues/947
2022-02-04 07:41:36 -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
aa3daf4eda
Change sprintf to SNPRINTF in serial.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 14:46:29 -06:00
Mike Black W9MDB
58b9e16099
Add debug for serial_handshake
2022-01-10 16:50:12 -06:00
Mike Black W9MDB
6d16f24157
CODAN promoted to stable
...
Re-enable serial flush
2021-12-28 12:55:50 -06:00
Mikael Nousiainen
c764336e73
Fix build warnings caused by changes to I/O function signatures
2021-12-18 23:49:45 +02:00
Mikael Nousiainen
56c95b1529
Merge upstream changes and fix conflicts
2021-12-12 23:05:26 +02:00
Mike Black W9MDB
63a51c36a1
astyle files preparing for 4.4 release
2021-11-28 12:41:10 -06:00
Mike Black W9MDB
d820ee9dbf
Add expected_len to read_string function for potential serial I/O speedup
...
https://github.com/Hamlib/Hamlib/issues/850
2021-11-24 13:02:39 -06:00
Mikael Nousiainen
1f538ad7ec
Started work on asynchronous reader thread to enable handling of rig tranceive and waterfall data (WIP)
2021-11-20 21:33:29 +02:00
Mike Black W9MDB
8fe190d622
Reduce error messages about RIG_VFO_OTHER which only applies to some rigs like Icom rigs with the 0x25 command
...
Add a flush_flag to read_string so that the new serial_flush will not produce a timeout value when flushing
https://github.com/Hamlib/Hamlib/issues/835
2021-11-01 23:43:45 -05:00
Mike Black W9MDB
84fb123202
Pass empty stopset to read_string so it can determine appropriate stopset for async data
2021-10-30 08:22:55 -05:00
Mike Black W9MDB
44871f7e9b
Change serial_flush to read any buffered data instead of flushing.
...
Perhaps to support transceive mode
2021-10-29 17:48:43 -05:00
Mike Black W9MDB
1ed398466d
Revert "Change serial_flush to read data instead of TCFLUSH"
...
Was causing timing problems
This reverts commit d28f440968
.
2021-10-29 14:38:40 -05:00
Mike Black W9MDB
f071adac8f
Revert "Revert "Revert "Fix hex print in serial_flush"""
...
Straighening out these reverts
This reverts commit b2646f54a4
.
2021-10-29 14:38:14 -05:00
Mike Black W9MDB
b2646f54a4
Revert "Revert "Fix hex print in serial_flush""
...
Was causing timing problems
This reverts commit bf2867021e
.
2021-10-29 14:33:31 -05:00
Mike Black W9MDB
bf2867021e
Revert "Fix hex print in serial_flush"
...
Was causing timing problems
This reverts commit 4a18fa2282
.
2021-10-29 14:33:08 -05:00
Mike Black W9MDB
4a18fa2282
Fix hex print in serial_flush
2021-10-29 11:43:41 -05:00
Mike Black W9MDB
d28f440968
Change serial_flush to read data instead of TCFLUSH
...
This is for the future to enable transceive mode on rigs
2021-10-29 11:24:16 -05:00
Mike Black W9MDB
283281c4cb
astyle all files preparing for 4.3 release
2021-08-26 06:49:24 -05:00
Mike Black W9MDB
b2acf0b6f5
Improve debug in ser_open
2021-08-21 22:38:44 -05:00
Mike Black W9MDB
0be978abcd
Add more retries to PTT serial port open
...
https://github.com/Hamlib/Hamlib/issues/768
2021-08-21 22:31:15 -05:00
Mike Black W9MDB
ad53f2f1e3
Fix typo in serial.c
...
https://github.com/Hamlib/Hamlib/issues/768
2021-08-21 07:41:48 -05:00
Mike Black W9MDB
c6151c7110
Fix error in serial.c
...
https://github.com/Hamlib/Hamlib/issues/768
2021-08-20 22:31:11 -05:00
Mike Black W9MDB
df40151d65
Add additional attempts to open serial port
...
K4 was failing on 1st open for some unknown reason but succeeds on 2nd try
https://github.com/Hamlib/Hamlib/issues/768
2021-08-20 22:29:12 -05:00
Mike Black W9MDB
d52cce510d
Add fallback serial open logic to hopefully cure serial port open error with K4
...
https://github.com/Hamlib/Hamlib/issues/768
2021-08-16 22:49:36 -05:00
Michael Black W9MDB
3bc39aaec1
astyle files is preparation for 4.2 release
2021-03-15 17:51:22 -05: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
ee60a68bec
astyle files
2021-02-28 09:46:01 -06:00
Michael Black W9MDB
da5a4ddc6e
Reduce debug in serial.c
2021-02-26 23:38:15 -06:00
Michael Black W9MDB
35cdf5fc3f
Fix compilation error on serial.c
2021-02-25 11:07:08 -06:00
Michael Black W9MDB
a3eaac9faf
Change some return to RETURNFUNC in serial.c
2021-02-25 06:07:51 -06:00
Michael Black W9MDB
fc890004f3
Fix too verbose debug in serial.c
2021-02-14 23:51:14 -06:00
Michael Black W9MDB
ab34e83adc
RETURNFUNC ENTERFUNC for serial.c
...
https://github.com/Hamlib/Hamlib/issues/514
2021-02-14 23:46:05 -06:00
Michael Black W9MDB
1fe2efb315
Reduce a debug level in serial.c
2021-01-22 08:26:03 -06:00
Michael Black W9MDB
5fc36df249
astyle files
2020-11-30 14:53:55 -06:00
Michael Black W9MDB
d782fde5e5
Some notes about microham router
2020-11-28 22:34:15 -06:00
Michael Black W9MDB
8827f081dd
Add flushx option for MicroHam devices to allow flushing by read instead of tcflush.
...
The special name of uh-rig only works on Linux and has other purposes apparently for ptt use
https://github.com/Hamlib/Hamlib/issues/446
2020-11-25 08:40:24 -06:00
Michael Black W9MDB
8ecf7b15ba
clean up a couple of compile warnings
2020-11-18 16:31:09 -06:00
Michael Black W9MDB
49d24815b2
Undo last commit to serial.c
2020-09-30 12:57:31 -05:00
Michael Black W9MDB
3c6ae62e59
Change get_kenwood_level to return both float 0-1.0 and raw value
...
Fix Elecraft K3/K3S/KX2/KX3 RF level get/set
Update other rigs for new get_kenwood_level call
https://github.com/Hamlib/Hamlib/issues/388
2020-09-30 12:46:54 -05:00
Michael Black W9MDB
cfff76dae6
Add some debug to show ser_open error
...
https://github.com/Hamlib/Hamlib/issues/383
2020-09-28 16:13:08 -04:00
Michael Black W9MDB
bc1e0cc678
https://github.com/Hamlib/Hamlib/issues/358
...
Added 50ms wait after serial port is opened.
MicroKeyer was rejecting "ID" command as it was too fast.
Values at 20ms or less weren't working so doing 2* safety factor
This shouldn't harm any other things going on.
2020-08-18 17:13:02 -05:00