kopia lustrzana https://github.com/Hamlib/Hamlib
Fix TEMP_METER level in newcat.c
rodzic
c76dc1453d
commit
6ad3440341
|
@ -5500,6 +5500,10 @@ int newcat_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
|
||||||
val->f = (float)(atoi(retlvl) / 10.);
|
val->f = (float)(atoi(retlvl) / 10.);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case RIG_LEVEL_TEMP_METER:
|
||||||
|
val->f = (float)(atoi(retlvl) / 255.);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
RETURNFUNC(-RIG_EINVAL);
|
RETURNFUNC(-RIG_EINVAL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
typedef char ncboolean;
|
typedef char ncboolean;
|
||||||
|
|
||||||
/* shared function version */
|
/* shared function version */
|
||||||
#define NEWCAT_VER "20220408"
|
#define NEWCAT_VER "20220428"
|
||||||
|
|
||||||
/* Hopefully large enough for future use, 128 chars plus '\0' */
|
/* Hopefully large enough for future use, 128 chars plus '\0' */
|
||||||
#define NEWCAT_DATA_LEN 129
|
#define NEWCAT_DATA_LEN 129
|
||||||
|
|
Ładowanie…
Reference in New Issue