From f4c1143959cea6c5bf87dfe8d15b25bdc5a18f7c Mon Sep 17 00:00:00 2001 From: Michael Black Date: Sun, 23 Feb 2020 09:48:21 -0600 Subject: [PATCH] Add SCREENSAVER parm...implemented for 9700 for now --- include/hamlib/rig.h | 3 ++- rigs/icom/ic7300.c | 1 + src/misc.c | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index a3c321bad..abfbc8d37 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -804,7 +804,8 @@ enum rig_parm_e { RIG_PARM_BEEP = (1 << 4), /*!< \c BEEP -- Beep on keypressed, int (0,1) */ RIG_PARM_TIME = (1 << 5), /*!< \c TIME -- hh:mm:ss, int in seconds from 00:00:00 */ RIG_PARM_BAT = (1 << 6), /*!< \c BAT -- battery level, float [0.0 ... 1.0] */ - RIG_PARM_KEYLIGHT = (1 << 7) /*!< \c KEYLIGHT -- Button backlight, on/off */ + RIG_PARM_KEYLIGHT = (1 << 7), /*!< \c KEYLIGHT -- Button backlight, on/off */ + RIG_PARM_SCREENSAVER = (1 << 8) /*!< \c SCREENSAVER -- rig specific timeouts */ }; #define RIG_PARM_FLOAT_LIST (RIG_PARM_BACKLIGHT|RIG_PARM_BAT|RIG_PARM_KEYLIGHT) diff --git a/rigs/icom/ic7300.c b/rigs/icom/ic7300.c index a893642db..92f66f242 100644 --- a/rigs/icom/ic7300.c +++ b/rigs/icom/ic7300.c @@ -138,6 +138,7 @@ struct cmdparams ic9700_extcmds[] = { { {.s=RIG_PARM_BEEP}, C_CTL_MEM, S_MEM_PARM, SC_MOD_RW, 2, {0x00, 0x29}, CMD_DAT_BOL, 1 }, { {.s=RIG_PARM_BACKLIGHT}, C_CTL_MEM, S_MEM_PARM, SC_MOD_RW, 2, {0x01, 0x52}, CMD_DAT_LVL, 2 }, { {.s=RIG_LEVEL_VOXDELAY}, C_CTL_MEM, S_MEM_PARM, SC_MOD_RW, 2, {0x03, 0x30}, CMD_DAT_INT, 1 }, +// { {.s=RIG_PARM_SCREENSAVER}, C_CTL_MEM, S_MEM_PARM, SC_MOD_RW, 2, {0x01, 0x67}, CMD_DAT_INT, 1 }, { {.s=RIG_PARM_NONE} } }; diff --git a/src/misc.c b/src/misc.c index 87e19cfb0..5f0f0d0f3 100644 --- a/src/misc.c +++ b/src/misc.c @@ -826,6 +826,7 @@ static struct { RIG_PARM_TIME, "TIME" }, { RIG_PARM_BAT, "BAT" }, { RIG_PARM_KEYLIGHT, "KEYLIGHT"}, + { RIG_PARM_SCREENSAVER, "SCREENSAVER"}, { RIG_PARM_NONE, "" }, };