Improved set_conf error when serial_handshake is invalid

pull/1242/head
Mike Black W9MDB 2023-01-17 08:50:47 -06:00
rodzic cb1c98fa85
commit 3f8da23bb6
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -369,6 +369,8 @@ static int frontend_set_conf(RIG *rig, token_t token, const char *val)
case TOK_HANDSHAKE:
if (rs->rigport.type.rig != RIG_PORT_SERIAL)
{
rig_debug(RIG_DEBUG_ERR, "%s: setting handshake is invalid for non-serial port rig type\n",
__func__);
return -RIG_EINVAL;
}