mirror of
https://git.code.sf.net/p/fldigi/flrig
synced 2026-08-13 17:28:24 -04:00
TS2000
* test for NR; response of ?;
This commit is contained in:
parent
c892e43163
commit
8b81927cca
1 changed files with 6 additions and 0 deletions
|
|
@ -125,6 +125,8 @@ void RIG_TS2000::initialize()
|
|||
cmd = "NR;";
|
||||
if (wait_char(';', 4, 100, "read current NR", ASC) == 4)
|
||||
current_nr = replystr;
|
||||
if (current_nr == "?;") return;
|
||||
|
||||
cmd = "NR1;";
|
||||
sendCommand(cmd);
|
||||
gett("get NR");
|
||||
|
|
@ -824,6 +826,10 @@ int RIG_TS2000::get_noise_reduction()
|
|||
if (p == string::npos) return _noise_reduction_level;
|
||||
_noise_reduction_level = replystr[p+2] - '0';
|
||||
}
|
||||
if (replystr == "?;") {
|
||||
_noise_reduction_level = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (_noise_reduction_level == 1) {
|
||||
nr_label("NR1", true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue