Skip to content

Commit

Permalink
Fix VFOMode to check for correct response
Browse files Browse the repository at this point in the history
Previous, VFOMode() was expecting the response `CHKVFO 1` from `rigctld`
when running in VFO mode, but in fact `rigctld` responds with the string
`1`:

    $ nc localhost 4532
    \chk_vfo
    1

Closes la5nta/pat#427
  • Loading branch information
larsks committed Oct 27, 2023
1 parent 6983167 commit c0e62cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rigcontrol/hamlib/rigctld.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (r *TCPRig) VFOMode() (bool, error) {
if err != nil {
return false, err
}
return resp == "CHKVFO 1", nil
return resp == "1", nil
}

// Gets the dial frequency for this VFO.
Expand Down

0 comments on commit c0e62cb

Please sign in to comment.