Wykres commitów

135 Commity (dad55ef1481cb82a93bac73d7d5793b7bfe4cdf5)

Autor SHA1 Wiadomość Data
Mike Black W9MDB dad55ef148 astyle files getting ready for WSJT-x-2.7.0rc1 2023-05-08 07:37:13 -05:00
Mike Black W9MDB e505ed37db Fix compile warning on mingw 2023-05-07 17:26:31 -05:00
Mike Black W9MDB a8aba7c13b Add tcflush back into flush routine
https://github.com/Hamlib/Hamlib/issues/1241
2023-03-06 11:26:35 -06:00
Mike Black W9MDB 9c48ec785c Improve serial port timeout when permission proble or does not exist
https://github.com/Hamlib/Hamlib/issues/1216
2023-01-12 11:23:11 -06:00
Mike Black W9MDB c1662ce886 Remove set_rts and set_dtr low from serial.c
This was causing hardward flow control to fail on Linux and MacOS
https://github.com/Hamlib/Hamlib/issues/1198
https://github.com/Hamlib/Hamlib/issues/1199
2022-12-31 09:30:25 -06:00
Mike Black W9MDB df8b88072a Add all the baud rates to serial.c -- virtual serial ports can handle 4,000,000 baud 2022-12-11 23:18:38 -06:00
Mike Black W9MDB dc7e9bd7e9 Re-enable O_NDELAY -- slowed things down by about 2X
https://github.com/Hamlib/Hamlib/issues/1163
2022-11-30 12:01:46 -06:00
Mike Black W9MDB 2b487fe718 Move ser_set_rts/dtr to beggining of serial_setup
https://github.com/Hamlib/Hamlib/issues/1131
2022-11-16 15:29:36 -06:00
Mike Black W9MDB 31e40d2751 ser_open now sets rts and dtr low on startup
https://github.com/Hamlib/Hamlib/issues/1131
2022-11-16 13:26:48 -06:00
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