Sfoglia il codice sorgente

Validate live demod mode

master
Jan Svabenik 3 giorni fa
parent
commit
c3b1ae51ff
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. +5
    -0
      internal/recorder/demod_live.go

+ 5
- 0
internal/recorder/demod_live.go Vedi File

@@ -27,6 +27,11 @@ func (m *Manager) DemodLive(centerHz float64, bw float64, mode string, seconds i
if name == "" {
name = "NFM"
}
switch name {
case "AM", "NFM", "WFM", "WFM_STEREO", "USB", "LSB", "CW":
default:
name = "NFM"
}
d := demod.Get(name)
if d == nil {
return nil, 0, errors.New("demodulator not found")


Loading…
Annulla
Salva