Fix TEMP_METER level in newcat.c

pull/1022/head
Mike Black W9MDB 2022-04-28 09:54:20 -05:00
rodzic c76dc1453d
commit 6ad3440341
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -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);
} }

Wyświetl plik

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