FT891 IPO

* Add button label change to indicate IPO/AMP state
This commit is contained in:
David Freese 2020-02-25 08:43:44 -06:00
parent 9d641b079b
commit 043a4391ce

View file

@ -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;
}