Remove TS570 code from newcat.c....duh...

https://github.com/Hamlib/Hamlib/issues/840
pull/846/head
Mike Black W9MDB 2021-10-28 08:34:37 -05:00
rodzic 022d4e4f67
commit ab0d25ce3b
2 zmienionych plików z 2 dodań i 11 usunięć

Wyświetl plik

@ -3671,16 +3671,7 @@ int newcat_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val)
{ {
RETURNFUNC(-RIG_ENAVAIL); RETURNFUNC(-RIG_ENAVAIL);
} }
// Firmware bug in TS570D has to adjust keyer speed snprintf(priv->cmd_str, sizeof(priv->cmd_str), "KS%03d%c", val.i, cat_term);
// At this point not sure which value is correct so we'll assume the requested rate is correct
if (rig->caps->rig_model == RIG_MODEL_TS570D || rig->caps->rig_model == RIG_MODEL_TS570S)
{
snprintf(priv->cmd_str, sizeof(priv->cmd_str), "KS%03d%c", (val.i-10)*2, cat_term);
}
else
{
snprintf(priv->cmd_str, sizeof(priv->cmd_str), "KS%03d%c", val.i, cat_term);
}
break; break;

Wyświetl plik

@ -50,7 +50,7 @@
typedef char ncboolean; typedef char ncboolean;
/* shared function version */ /* shared function version */
#define NEWCAT_VER "20211025" #define NEWCAT_VER "20211028"
/* 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