kopia lustrzana https://github.com/Hamlib/Hamlib
Fix newcat.c get_mode MD=1=LSB, MD=2=USB
rodzic
a401d3ac78
commit
343d6b48a0
|
@ -418,6 +418,7 @@ int newcat_set_conf(RIG *rig, token_t token, const char *val)
|
||||||
{
|
{
|
||||||
char *end;
|
char *end;
|
||||||
long value;
|
long value;
|
||||||
|
|
||||||
case TOK_FAST_SET_CMD: ;
|
case TOK_FAST_SET_CMD: ;
|
||||||
//using strtol because atoi can lead to undefined behaviour
|
//using strtol because atoi can lead to undefined behaviour
|
||||||
value = strtol(val, &end, 10);
|
value = strtol(val, &end, 10);
|
||||||
|
@ -875,29 +876,11 @@ int newcat_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
|
||||||
switch (c)
|
switch (c)
|
||||||
{
|
{
|
||||||
case '1':
|
case '1':
|
||||||
|
*mode = RIG_MODE_LSB;
|
||||||
/* Why is the FT891 backwards with LSB/USB?? Oh well... */
|
|
||||||
if (newcat_is_rig(rig, RIG_MODEL_FT891))
|
|
||||||
{
|
|
||||||
*mode = RIG_MODE_LSB;
|
|
||||||
}
|
|
||||||
else /* every other Yaesu */
|
|
||||||
{
|
|
||||||
*mode = RIG_MODE_USB;
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '2':
|
case '2':
|
||||||
if (newcat_is_rig(rig, RIG_MODEL_FT891))
|
*mode = RIG_MODE_USB;
|
||||||
{
|
|
||||||
*mode = RIG_MODE_USB;
|
|
||||||
}
|
|
||||||
else /* every other Yaesu */
|
|
||||||
{
|
|
||||||
*mode = RIG_MODE_LSB;
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '3':
|
case '3':
|
||||||
|
|
Ładowanie…
Reference in New Issue