Wykres commitów

96 Commity (983a9fae0b8e0bc65fba828a267e55812ff10439)

Autor SHA1 Wiadomość Data
Mike Black W9MDB 97811d2aa7 Remove whitespace after backslash in lib/Makefile.am 2023-06-17 08:29:15 -05:00
Mike Black W9MDB 01a7eee18d Reduced loop time in termios.c to 1ms vice 10ms
https://github.com/Hamlib/Hamlib/issues/695
2023-05-16 07:38:21 -05:00
Mike Black W9MDB d3b912aadb Add precise_time.c to misc to help speed up Windows
https://github.com/Hamlib/Hamlib/issues/1290
2023-05-15 11:45:40 -05:00
Mike Black W9MDB 4f0d78f1d9 Fix cppcheck warnings 2023-05-08 23:56:28 -05: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
Mike Black W9MDB ff15e141ef Fix termios.c warnings 2022-07-22 22:36:47 -05:00
Mike Black W9MDB 1063540765 Fix show_DCB in termios.c 2022-05-13 10:32:17 -05:00
Mike Black W9MDB 5588b2465c Change termios.c Windows sleep to 10,000us instead of 1,000us -- makes for more accurate sleep calculation
https://github.com/Hamlib/Hamlib/issues/996
2022-03-24 12:12:22 -05: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 9aade8de3f Add config.h to include/hamlib so HAVE_PTHREAD is available if needed
https://github.com/Hamlib/Hamlib/issues/947
2022-02-03 22:31:42 -06:00
Mike Black W9MDB 6f0d8bdcce Change snprintf to SNPRINTF in lib files
https://github.com/Hamlib/Hamlib/issues/857
2022-01-22 22:20:05 -06:00
Mike Black W9MDB 7ecd467126 Change sprintf to SNPRINTF in cJSON.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 15:28:09 -06:00
Mike Black W9MDB 7764b59f36 Change sprintf to snprint in termios.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-09 09:25:15 -06:00
Mike Black W9MDB 814ac551e8 Change sprintf to snprint in asyncpipe.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-09 09:18:43 -06:00
Mike Black W9MDB 0600adb077 Change sprintf to snprint in cJSON.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 17:26:54 -06:00
Mikael Nousiainen a00d78c860 Implement pipes using asynchronous/overlapped I/O on Windows 2022-01-03 14:18:49 +02:00
Mikael Nousiainen 56c95b1529 Merge upstream changes and fix conflicts 2021-12-12 23:05:26 +02: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 63a51c36a1 astyle files preparing for 4.4 release 2021-11-28 12:41:10 -06:00
Mike Black W9MDB 233036f874 Fix compile warning in termios.c 2021-11-03 11:56:34 -05:00
Mike Black W9MDB 30ef04b1a4 Speed up Windows serial I/O
Was using a fixed timeout instead of returning already read
https://github.com/Hamlib/Hamlib/issues/850
2021-11-02 16:40:39 -05:00
Mike Black W9MDB 52e0840f1d Speed up serial timeout minimum from ~12ms to ~1ms 2021-10-31 17:21:20 -05:00
Mike Black W9MDB 4501c1c97b Remove generated files 2021-04-14 15:41:01 -05:00
Mike Black W9MDB 9d310062eb More files for git clone configure to work 2021-04-14 09:19:27 -05:00
Michael Black W9MDB ee60a68bec astyle files 2021-02-28 09:46:01 -06:00
Michael Black W9MDB 6049f54ef4 Fix compilation warnings in getopt.c 2021-02-26 11:17:35 -06:00
Michael Black W9MDB c5ac5b2334 Fix win32termios.h build under mingw
https://github.com/Hamlib/Hamlib/issues/421
2020-10-16 15:26:30 -05:00
Michael Black W9MDB 1c7e5b2e48 Fix win32termios.h
https://github.com/Hamlib/Hamlib/issues/421
2020-10-16 14:48:01 -05:00
Michael Black W9MDB cf32ace4be Fix gcc warnings
https://github.com/Hamlib/Hamlib/issues/421
2020-10-16 11:51:41 -05:00
Daniele Forsi 1e00e4e8db Fix typos
Command line:
codespell --write-changes --summary --skip=*.m4 --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor,objext,ans
2020-10-11 18:03:50 +02:00
Michael Black W9MDB b97d05369c astyle files 2020-09-14 23:12:35 -05:00
Michael Black W9MDB 12c2434dc7 Fix cppcheck warning in termios.c: 2020-09-14 07:59:47 -05:00
Michael Black ff8ddf018c astyle all C files 2020-02-23 11:26:09 -06:00
Michael Black 60b3e3e8bd
Fix cppcheck warnings in getopt.h 2020-01-12 11:53:29 -06:00
Michael Black b7e8f01701 Fix mingw32 DLL linkage of hl_sleep 2020-01-10 15:58:16 -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 7bc8ac0c35
Fix cppcheck warning in getopt_long.c 2019-12-19 08:14:26 -06:00
Michael Black 3d98d3862c
Fix cppcheck warning in getopt.c 2019-12-19 08:13:34 -06:00
Michael Black 7dc98d3b79
Fix cppcheck warning in getopt.c removing alloca 2019-12-19 08:11:37 -06:00
Michael Black 60cfecd5b4
Hopefully suppress arm compilation warning 2019-12-03 16:15:33 -06:00
Michael Black da86568edb
Fix compile warnings on termios.c 2019-12-03 14:51:02 -06:00
Michael Black 6bf3b00c4f
astyle all files 2019-11-30 10:19:08 -06:00
Michael Black b7ee4109ca
Fix termios to return timeout value when timeout occurs 2019-06-12 16:38:58 -05:00
Michael Black c61a62bec5
Fix termios debug statement 2019-06-12 12:15:01 -05:00
Bill Somerville 6612f8e1b2 Fix an incorrect error return value from win32_serial_select() 2019-05-04 11:35:55 +01:00
Michael Black 1d41268e4c Fixes to termios.c on W32 targets
I was debugging termios.c and this patch fixes two small problems--two
debug printf format problems and another one that causes an extra char
to be read on timeout.

The extra char problem is easily duplicated by using the "w" command
under rigtctl.  Most all other commands use fixed-length response
strings which don't exhibit the problem.  But since "w" does not know
how long the response should be it loops until it times out.  Every time
it times out it would return 1 extra character (this was 100% repeatable
on two different rigs).

Turns out it was a simple typo in the code as the read was using the
write event instead of the read event.
2015-02-22 10:03:24 -06:00
Bill Somerville aa3fd7ba28 Remove gratuitous sleeps before function exits
Add sleep in tight wait loop to reduce CPU loading.
2014-12-10 01:34:35 +00:00
Bill Somerville 849f1e1bf8 Fix serial i/o on Windows.
Fix bytes read count accumulation in Windows serial I/O.

read_string  from  communications  port   doesn't  handle  timeout  on
anything but the first character read.

Honour VMIN tty parameter correctly.
2014-11-30 11:22:58 +00:00