summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/usrp_source_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-uhd/lib/usrp_source_impl.cc')
-rw-r--r--gr-uhd/lib/usrp_source_impl.cc4
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 a71f53c5b3..3142627952 100644
--- a/gr-uhd/lib/usrp_source_impl.cc
+++ b/gr-uhd/lib/usrp_source_impl.cc
@@ -710,7 +710,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);
}
}
@@ -720,7 +720,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);
}
}