Commit 24e491e
fix: add VFO switching bypass for get_func/set_func/vfo_op on ICOM serial rigs
ICOM rigs (e.g. IC-705) fail when rig_get_func/rig_set_func are called
because Hamlib internally calls icom_set_vfo which returns "unsupported VFO".
For get_func/set_func: set RIG_TARGETABLE_FUNC flag to skip VFO switching,
same approach as the RIG_TARGETABLE_LEVEL fix for getLevel/setLevel.
For vfo_op: use fallback pattern (try standard call, then direct backend
call on RIG_EINVAL) since there is no RIG_TARGETABLE for vfo_op.
This fixes antenna tuner (ATU) control via Hamlib for IC-705.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ee0c4bf commit 24e491e
2 files changed
Lines changed: 35 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
408 | 427 | | |
| 428 | + | |
409 | 429 | | |
410 | 430 | | |
411 | 431 | | |
412 | 432 | | |
| 433 | + | |
413 | 434 | | |
414 | 435 | | |
415 | 436 | | |
| |||
612 | 633 | | |
613 | 634 | | |
614 | 635 | | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
615 | 642 | | |
616 | | - | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
617 | 650 | | |
618 | 651 | | |
619 | 652 | | |
| |||
0 commit comments