Change ENIMPL returns to ENAVAIL for correctness

pull/290/head
Michael Black W9MDB 2020-06-02 23:01:01 -05:00
rodzic ae24d50901
commit ed8d9d9926
1 zmienionych plików z 4 dodań i 5 usunięć

Wyświetl plik

@ -287,7 +287,6 @@ AMP *HAMLIB_API amp_init(amp_model_t amp_model)
* set appropriately).
*
* \retval RIG_EINVAL \a amp is NULL or unconsistent.
* \retval RIG_ENIMPL port type communication is not implemented yet.
*
* \sa amp_init(), amp_close()
*/
@ -652,7 +651,7 @@ int HAMLIB_API amp_get_level(AMP *amp, setting_t level, value_t *val)
if (amp->caps->get_level == NULL)
{
return -RIG_ENIMPL;
return -RIG_ENAVAIL;
}
return amp->caps->get_level(amp, level, val);
@ -671,7 +670,7 @@ int HAMLIB_API amp_get_ext_level(AMP *amp, token_t level, value_t *val)
if (amp->caps->get_ext_level == NULL)
{
return -RIG_ENIMPL;
return -RIG_ENAVAIL;
}
return amp->caps->get_ext_level(amp, level, val);
@ -705,7 +704,7 @@ int HAMLIB_API amp_set_powerstat(AMP *amp, powerstat_t status)
if (amp->caps->set_powerstat == NULL)
{
return -RIG_ENIMPL;
return -RIG_ENAVAIL;
}
return amp->caps->set_powerstat(amp, status);
@ -723,7 +722,7 @@ int HAMLIB_API amp_get_powerstat(AMP *amp, powerstat_t *status)
if (amp->caps->get_powerstat == NULL)
{
return -RIG_ENIMPL;
return -RIG_ENAVAIL;
}
return amp->caps->get_powerstat(amp, status);