Fixes for the piHPSDR backend.

pull/37/head
c vw 2018-06-27 17:11:35 +02:00
rodzic 30ec001057
commit 80633e6d2e
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -1427,7 +1427,7 @@ int kenwood_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
}
}
if (priv->is_emulation)
if (priv->is_emulation || rig->caps->rig_model == RIG_MODEL_HPSDR)
{
/* emulations like PowerSDR and SmartSDR normally hijack the
RTTY modes for SSB-DATA AFSK modes */
@ -1624,7 +1624,7 @@ int kenwood_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
kmode = modebuf[offs] - 'A' + 10;
}
*mode = kenwood2rmode(kmode, caps->mode_table);
if (priv->is_emulation)
if (priv->is_emulation || rig->caps->rig_model == RIG_MODEL_HPSDR)
{
/* emulations like PowerSDR and SmartSDR normally hijack the
RTTY modes for SSB-DATA AFSK modes */

Wyświetl plik

@ -656,7 +656,8 @@ int pihpsdr_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val)
switch (level) {
case RIG_LEVEL_RFPOWER:
/* XXX check level range */
/* level is float between 0.0 and 1.0, maps to 0 ... 100 */
kenwood_val = val.f * 100;
sprintf(levelbuf, "PC%03d", kenwood_val);
break;