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
47f60d4ad7
[simulators] Remove unused includes
...
Found by iwyu.
2025-08-30 09:43:45 +02:00
Daniele Forsi IU5HKX
d5c5eeff15
No need to use strlen() because the i variable counted the chars read
2025-08-05 22:40:17 +02:00
Daniele Forsi IU5HKX
249a993633
Avoid spamming the terminal with 0's
2025-08-05 22:22:50 +02:00
Daniele Forsi IU5HKX
8064da8121
Avoid burning 100% CPU
...
Adds hl_usleep() like in the other version of getmyline().
2025-08-05 21:16:33 +02:00
Daniele Forsi IU5HKX
790820ab22
Refactor to remove code duplication of one version of getmyline()
2025-08-04 11:36:03 +02:00
Daniele Forsi IU5HKX
a5467f4033
Refactor to remove code duplication of one version of getmyline()
2025-08-04 11:34:00 +02:00
Daniele Forsi IU5HKX
f89ebfd226
Add include missed by IWYU
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
1568a6c7fc
Refactor to remove code duplication of typedef enum nc_rigid_e
...
Also updates nc_rigid_e from rigs/yaesu/newcat.c
There where different versions of that enum in the simulators.
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
Mike Black W9MDB
85f828b19f
Add sim.h
2023-11-16 16:33:32 -06:00