From 043a4391cea457eeee4880929a9496dbcfeb4c2f Mon Sep 17 00:00:00 2001 From: David Freese Date: Tue, 25 Feb 2020 08:43:44 -0600 Subject: [PATCH] FT891 IPO * Add button label change to indicate IPO/AMP state --- src/rigs/FT891.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/rigs/FT891.cxx b/src/rigs/FT891.cxx index d7576d5a..764648f0 100644 --- a/src/rigs/FT891.cxx +++ b/src/rigs/FT891.cxx @@ -576,6 +576,13 @@ void RIG_FT891::set_preamp(int val) { if (val) cmd = "PA01;"; else cmd = "PA00;"; + if (val) { + preamp_label("AMP", true); + } else { + preamp_label("IPO", false); + } + preamp_level = val; + sendCommand (cmd); showresp(WARN, ASC, "SET preamp", cmd, replystr); } @@ -590,6 +597,12 @@ int RIG_FT891::get_preamp() if (p != string::npos) preamp_level = replystr[p+3] - '0'; + if (preamp_level == 1) { + preamp_label("Amp", true); + } else { + preamp_label("IPO", false); + } + return preamp_level; }