Skip to content

Commit

Permalink
Close rig on set_powerstat 0 -- Linux was unable to reconnect to IC-7300
Browse files Browse the repository at this point in the history
  • Loading branch information
mdblack98 committed Jan 9, 2023
1 parent 0fce421 commit df2aa87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Version 4.6

Version 4.5.4
* 2023-XX-XX
* Fix set_powerstat 0 to reopen with IC-7300 (and others?) on Linux
* Fix FT-710 usage on 60M
* Fix timing on NRD-535D
* Fix AGC levels with rigctld
Expand Down
3 changes: 3 additions & 0 deletions src/rig.c
Original file line number Diff line number Diff line change
Expand Up @@ -6010,6 +6010,9 @@ int HAMLIB_API rig_set_powerstat(RIG *rig, powerstat_t status)
HAMLIB_TRACE;
retcode = rig->caps->set_powerstat(rig, status);
rig_flush(&rig->state.rigport); // if anything is queued up flush it

if (status == RIG_POWER_OFF) { rig_close(rig); }

RETURNFUNC(retcode);
}

Expand Down

0 comments on commit df2aa87

Please sign in to comment.