Merge pull request #494 from N8TW/FT-980_Backend

Bug fix limiting memory access to 15 slots instead of 16.
pull/495/head
Michael Black 2021-01-07 16:12:35 -06:00 zatwierdzone przez GitHub
commit a3a6467ac1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -995,7 +995,7 @@ int ft980_set_mem(RIG *rig, vfo_t vfo, int ch)
unsigned char cmd[YAESU_CMD_LENGTH] = { 0x00, 0x00, 0x00, 0x00, 0x0A };
struct ft980_priv_data *priv = (struct ft980_priv_data *)rig->state.priv;
if (ch >= 16 || ch < 1)
if (ch > 16 || ch < 1)
{
return -RIG_EINVAL;
}
@ -1021,4 +1021,3 @@ int ft980_get_mem(RIG *rig, vfo_t vfo, int *ch)
return RIG_OK;
}