Add RIG_CONF_INT

Fix AGC_LAST value thanks to cppcheck
pull/1404/head
Mike Black W9MDB 2023-10-08 17:18:16 -05:00
rodzic 67fdf34f22
commit e68b6f98b5
2 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -860,7 +860,8 @@ enum rig_conf_e {
RIG_CONF_NUMERIC, /*!< Numeric type integer or real */
RIG_CONF_CHECKBUTTON, /*!< on/off type */
RIG_CONF_BUTTON, /*!< Button type */
RIG_CONF_BINARY /*!< Binary buffer type */
RIG_CONF_BINARY, /*!< Binary buffer type */
RIG_CONF_INT /*!< Integer */
};
//! @cond Doxygen_Suppress
@ -970,7 +971,7 @@ typedef unsigned int ant_t;
//! @cond Doxygen_Suppress
#define RIG_AGC_LAST -1
#define RIG_AGC_LAST 99999
//! @endcond
#if 1 // deprecated

Wyświetl plik

@ -3419,6 +3419,10 @@ declare_proto_rig(get_level)
fprintf(fout, "%f%c", val.f, resp_sep);
break;
case RIG_CONF_INT:
fprintf(fout, "%d%c", val.i, resp_sep);
break;
case RIG_CONF_STRING:
fprintf(fout, "%s%c", val.s, resp_sep);
break;