Fix ic703 and ic705 RIG_LEVEL_RFPOWER_METER_WATTS to scale to 10W instead of 100W

pull/518/head
Michael Black W9MDB 2021-01-20 15:07:59 -06:00
rodzic f81c9158a8
commit 5a9daf5f0e
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -3111,8 +3111,15 @@ int icom_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
}
else
{
float scale = 100;
if (rig->caps->rig_model == RIG_MODEL_IC705
|| rig->caps->rig_model == RIG_MODEL_IC703)
{
scale = 10;
}
val->f =
rig_raw2val_float(icom_val, &rig->caps->rfpower_meter_cal) * 100;
rig_raw2val_float(icom_val, &rig->caps->rfpower_meter_cal) * scale;
}
}
break;

Wyświetl plik

@ -30,7 +30,7 @@
#include <sys/time.h>
#endif
#define BACKEND_VER "20210113"
#define BACKEND_VER "20210120"
/*
* defines used by comp_cal_str in rig.c