mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-23 16:34:43 +01:00
Hide antenna select when SDR only has one antenna
This commit is contained in:
parent
a4ec53c90a
commit
d3a6ee6a94
@ -132,7 +132,7 @@ public:
|
||||
#ifdef _WIN32
|
||||
send(sock, (char*)&cmd, sizeof(command_t), 0);
|
||||
#else
|
||||
write(sockfd, &cmd, sizeof(command_t));
|
||||
(void)write(sockfd, &cmd, sizeof(command_t));
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -140,7 +140,7 @@ public:
|
||||
#ifdef _WIN32
|
||||
recv(sock, (char*)buf, count, 0);
|
||||
#else
|
||||
read(sockfd, buf, count);
|
||||
(void)read(sockfd, buf, count);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -384,6 +384,7 @@ private:
|
||||
|
||||
if (_this->running) { style::endDisabled(); }
|
||||
|
||||
if (_this->antennaList.size() > 1) {
|
||||
ImGui::Text("Antenna");
|
||||
ImGui::SameLine();
|
||||
ImGui::SetNextItemWidth(menuWidth - ImGui::GetCursorPosX());
|
||||
@ -392,6 +393,7 @@ private:
|
||||
_this->dev->setAntenna(SOAPY_SDR_RX, _this->channelId, _this->antennaList[_this->uiAntennaId]);
|
||||
_this->saveCurrent();
|
||||
}
|
||||
}
|
||||
|
||||
float gainNameLen = 0;
|
||||
float len;
|
||||
|
Loading…
x
Reference in New Issue
Block a user