diff options
author | Tom Rondeau <tom@trondeau.com> | 2014-10-06 09:25:59 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-10-06 09:25:59 -0400 |
commit | 81839787238b9d2b9ffb65c58fccf1ae861c80ff (patch) | |
tree | 5bf01a735fe9aea0bbfa9a02de88f2ea98a72356 /gr-uhd/lib/usrp_source_impl.cc | |
parent | f2de4f79a1b042876e6535d34aa104340f2fb45d (diff) |
Removing use of 'and', 'or', and 'not' for &&, ||, and !.
Diffstat (limited to 'gr-uhd/lib/usrp_source_impl.cc')
-rw-r--r-- | gr-uhd/lib/usrp_source_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-uhd/lib/usrp_source_impl.cc b/gr-uhd/lib/usrp_source_impl.cc index 53038bf202..6be0bac9ca 100644 --- a/gr-uhd/lib/usrp_source_impl.cc +++ b/gr-uhd/lib/usrp_source_impl.cc @@ -723,7 +723,7 @@ namespace gr { if (command == "freq") { double freq = pmt::to_double(cmd_value); for (size_t i = 0; i < _nchan; i++) { - if (chan == -1 or chan == int(i)) { + if (chan == -1 || chan == int(i)) { set_center_freq(freq, i); } } @@ -733,7 +733,7 @@ namespace gr { } else if (command == "gain") { double gain = pmt::to_double(cmd_value); for (size_t i = 0; i < _nchan; i++) { - if (chan == -1 or chan == int(i)) { + if (chan == -1 || chan == int(i)) { set_gain(gain, i); } } |