mirror of
https://git.code.sf.net/p/fldigi/flrig
synced 2026-08-13 17:28:24 -04:00
FT891 IPO
* Add button label change to indicate IPO/AMP state
This commit is contained in:
parent
9d641b079b
commit
043a4391ce
1 changed files with 13 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue