Skip to content

Commit

Permalink
rmslist: Fix dial frequency of ardop fm nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhpedersen committed Dec 13, 2017
1 parent de2a521 commit 3c015c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions freq.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ func (f Frequency) KHz() float64 { return float64(f) / 1e3 }
func (f Frequency) Dial(mode string) Frequency {
mode = strings.ToLower(mode)

// Try to detect FM modes
// (ARDOP on FM is reported as `ARDOP 2000 FM`)
if strings.HasSuffix(mode, "fm") {
return f
}

offsets := map[string]Frequency{
"winmor": 1500,
"pactor": 1500,
Expand Down

0 comments on commit 3c015c4

Please sign in to comment.