Explorar el Código

Validate live demod mode

master
Jan Svabenik hace 3 días
padre
commit
c3b1ae51ff
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. +5
    -0
      internal/recorder/demod_live.go

+ 5
- 0
internal/recorder/demod_live.go Ver fichero

@@ -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")


Cargando…
Cancelar
Guardar