Merge branch 'netrig-level-emulation-setup'

of git://git.code.sf.net/u/bsomervi/hamlib into netrig-level-emulation-setup
astyle-formatting
Nate Bargmann 2017-03-31 16:58:06 -05:00
commit f746295098
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -235,6 +235,13 @@ chan_t chan_list[CHANLSTSIZ]; /*!< Channel list, zero ended */
return (ret < 0) ? ret : -RIG_EPROTO;
rs->has_get_level = strtol(buf, NULL, 0);
if (rs->has_get_level & RIG_LEVEL_RAWSTR)
{
/* include STRENGTH because the remote rig may be able to
provide a front end emulation, if it can't then an
-RIG_EINVAL will be returned */
rs->has_get_level |= RIG_LEVEL_STRENGTH;
}
ret = read_string(&rig->state.rigport, buf, BUF_MAX, "\n", sizeof("\n"));
if (ret <= 0)