Merge pull request #805 from wutje/fix_yaesu_detect

Fix Yaesu and Adat detect
pull/809/head
Michael Black 2021-09-20 16:31:56 -05:00 zatwierdzone przez GitHub
commit 3fb38741aa
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -3706,7 +3706,7 @@ DECLARE_PROBERIG_BACKEND(adat)
}
port->write_delay = port->post_write_delay = 10;
port->parm.serial.stop_bits = 0;
port->parm.serial.stop_bits = 2;
port->retry = 1;

Wyświetl plik

@ -134,7 +134,7 @@ DECLARE_PROBERIG_BACKEND(yaesu)
static const unsigned char cmd[YAESU_CMD_LENGTH] = { 0x00, 0x00, 0x00, 0x00, 0xfa};
int id_len = -1, i, id1, id2;
int retval = -1;
int rates[] = { 4800, 57600, 9600, 38400, 0 }; /* possible baud rates */
static const int rates[] = { 4800, 57600, 9600, 38400, 0 }; /* possible baud rates */
int rates_idx;
if (!port)
@ -172,9 +172,9 @@ DECLARE_PROBERIG_BACKEND(yaesu)
close(port->fd);
if (retval != RIG_OK || id_len < 0)
if (retval == RIG_OK && id_len > 0)
{
continue;
break;
}
}