mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-11 18:57:11 +01:00
fixed USRP channel name bug
This commit is contained in:
parent
d74ea13878
commit
c72c8d056d
@ -119,7 +119,7 @@ public:
|
||||
auto subdevs = dev->get_rx_subdev_spec();
|
||||
for (int i = 0; i < subdevs.size(); i++) {
|
||||
std::string slot = subdevs[i].db_name;
|
||||
sprintf(buf, "%s [%s]", dev->get_rx_subdev_name(i), slot.c_str());
|
||||
sprintf(buf, "%s [%s]", dev->get_rx_subdev_name(i).c_str(), slot.c_str());
|
||||
channels.define(buf, buf, slot);
|
||||
}
|
||||
|
||||
@ -310,7 +310,7 @@ private:
|
||||
_this->select(ser);
|
||||
}
|
||||
|
||||
// TODO: Hide if only one channel
|
||||
if (_this->channels.size() > 1) {
|
||||
SmGui::LeftLabel("Channel");
|
||||
SmGui::FillWidth();
|
||||
SmGui::ForceSync();
|
||||
@ -322,10 +322,11 @@ private:
|
||||
}
|
||||
_this->select(_this->devices.key(_this->devId));
|
||||
}
|
||||
}
|
||||
|
||||
if (_this->running) { SmGui::EndDisabled(); }
|
||||
|
||||
// TODO: Hide if only one antenna
|
||||
if (_this->antennas.size() > 1) {
|
||||
SmGui::LeftLabel("Antenna");
|
||||
SmGui::FillWidth();
|
||||
if (SmGui::Combo(CONCAT("##_usrp_ant_sel_", _this->name), &_this->antId, _this->antennas.txt)) {
|
||||
@ -338,6 +339,7 @@ private:
|
||||
config.release(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SmGui::LeftLabel("Gain");
|
||||
SmGui::FillWidth();
|
||||
|
Loading…
Reference in New Issue
Block a user