Commit graph

23 commits

Author SHA1 Message Date
George Baltz N3GB
3bed166fd6 Update a couple of simulators
Yet another failed attempt to test code via simulator; x25/x26 commands
  gave bogus answers.  So, another round of general cleanups for a
  couple of simulated rigs.

Fix detection of bad headers
Always send well-formed ACK/NAK frames
Add missing values to 0x26 messages
Fix bad responses when VFOB is active
Remove duplicate debug messages
Add some vendor-specific data and definitions to sim.h
Partial removal of rig.h dependencies/definitions
2026-07-01 15:29:58 -04:00
George Baltz N3GB
00fb4bba71 Remove dependency on misc.h from sim.h
Include string.h to declare strerror
Remove rig.h from simic705.c

From first principles, none of the simulators should use *ANY* of the
code from Hamlib.  Using the same code on both sides of a simulation gives
the equivalent of a math "X = X" proof; guaranteed to work, but useless
for proving anything else.
2025-09-15 14:58:38 -04:00
Daniele Forsi IU5HKX
5b87b38704 Replace "goto again" with "continue" (first case)
Does the same thing with more structured control flow.
It also silences compiler warnings.
2025-08-07 11:22:14 +02:00
Daniele Forsi IU5HKX
9dd0009f9e Remove unused define 2025-08-05 22:22:50 +02:00
Daniele Forsi IU5HKX
f8881f9bb9 Remove disabled code
None of these simulators does multicast networking.
2025-08-03 22:09:04 +02:00
Daniele Forsi IU5HKX
c26f033395 Do not use relative paths for including misc.h
The Makefile adds all necessary include directories.
2025-08-03 16:09:47 +02:00
Daniele Forsi IU5HKX
df7fbbec9b Have IWYU fix the includes 2025-08-03 09:35:03 +02:00
Daniele Forsi IU5HKX
3b2a95053b Refactor to remove code duplication of dumphex() 2025-08-03 09:35:03 +02:00
Daniele Forsi IU5HKX
98a81a5074 Replace magic number with a defined constant
The same constant is used by memset() in getmyline().
2025-08-03 09:35:03 +02:00
Daniele Forsi IU5HKX
ecece62828 Refactor to remove code duplication of openPort()
The code wasn't indented in simic7300.c and simic7700.c but it was
identical.
2025-08-03 09:35:02 +02:00
Daniele Forsi IU5HKX
e8467032ad Remove unused includes
Found with IWYU.
2025-08-02 13:13:10 +02:00
Daniele Forsi IU5HKX
0267068220 Fix ambiguity between system includes and Hamlib includes 2025-07-22 23:33:57 +02:00
George Baltz N3GB
df2bf0c634 Fix 0x26 command in simic705.c - off by 1 byte
Reduce usage of rig.h idioms - use Icom values.
Reduce/cleanup some debug output.
Add width set (1A 03)
2025-06-13 14:37:35 -04:00
Daniele Forsi IU5HKX
3448c735b0 Remove non-working compilation instructions from comments
Some instructions were a copy and paste error, some did not link
to Hamlib. Compile all simulators with: make -C simulators check
or compile a single simulator replacing "check" with the name of
the simulator.

Fixed with:
perl -pe 's,// gcc.*\n,,' -i *.c
perl -pe 's,// On mingw.*\n,,' -i *.c
2025-04-30 19:34:22 +02:00
Daniele Forsi IU5HKX
037c4953ed Fix name of function in error messages
Fixed with:
perl -pe s/pstname/ptsname/ -i *.c
2025-04-30 19:22:36 +02:00
Mike Black W9MDB
5c269964c2 astyle files in preparation for release 4.6 2024-11-06 08:07:34 -06:00
Mike Black W9MDB
ad70cc0ba4 Fix simic705 2024-11-04 16:45:23 -06:00
Mike Black W9MDB
f51e7ef760 Add SDRConsole rig entry since TS-2000 is now hardware flow control by default 2024-03-23 08:46:56 -05:00
Mike Black W9MDB
434f399d12 Update simulators 2024-02-01 12:38:12 -06:00
Mike Black W9MDB
30f47cdeba Update Icom simulators for better behavior at rigctl shutdown 2023-11-25 09:29:01 -06:00
Mike Black W9MDB
4175929a48 More changes from cppcheck 2023-10-06 22:59:55 -05:00
Mike Black W9MDB
e887152407 Fix parm_gran
https://github.com/Hamlib/Hamlib/issues/1357
2023-08-17 16:04:45 -05:00
Mike Black W9MDB
c452cd31d9 Add simic705 simulator 2023-07-31 17:10:17 -05:00