Change TEMP_METER to centigrade scale

pull/1022/head
Mike Black W9MDB 2022-04-28 10:08:17 -05:00
rodzic 6ad3440341
commit c8faa7a915
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -904,7 +904,7 @@ enum meter_level_e {
RIG_METER_DB = (1 << 4), /*< DB */
RIG_METER_PO = (1 << 5), /*< Power Out */
RIG_METER_VDD = (1 << 6), /*< Final Amp Voltage */
RIG_METER_TEMP = (1 << 7) /*< Final Amp Voltage */
RIG_METER_TEMP = (1 << 7) /*< Final Amp Temperature */
};

Wyświetl plik

@ -5501,7 +5501,8 @@ int newcat_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
break;
case RIG_LEVEL_TEMP_METER:
val->f = (float)(atoi(retlvl) / 255.);
// return value in centigrade
val->f = (float)(atoi(retlvl) / 255. * 100.);
break;
default: