diff --git a/rtl_tcp_source/src/rtltcp_client.h b/rtl_tcp_source/src/rtltcp_client.h index f563d89e..8596bee0 100644 --- a/rtl_tcp_source/src/rtltcp_client.h +++ b/rtl_tcp_source/src/rtltcp_client.h @@ -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 } diff --git a/soapy_source/src/main.cpp b/soapy_source/src/main.cpp index 942f19cd..e4aa6d6b 100644 --- a/soapy_source/src/main.cpp +++ b/soapy_source/src/main.cpp @@ -384,13 +384,15 @@ private: if (_this->running) { style::endDisabled(); } - ImGui::Text("Antenna"); - ImGui::SameLine(); - ImGui::SetNextItemWidth(menuWidth - ImGui::GetCursorPosX()); - if (ImGui::Combo(CONCAT("##_antenna_select_", _this->name), &_this->uiAntennaId, _this->txtAntennaList.c_str())) { - if (_this->running) - _this->dev->setAntenna(SOAPY_SDR_RX, _this->channelId, _this->antennaList[_this->uiAntennaId]); - _this->saveCurrent(); + if (_this->antennaList.size() > 1) { + ImGui::Text("Antenna"); + ImGui::SameLine(); + ImGui::SetNextItemWidth(menuWidth - ImGui::GetCursorPosX()); + if (ImGui::Combo(CONCAT("##_antenna_select_", _this->name), &_this->uiAntennaId, _this->txtAntennaList.c_str())) { + if (_this->running) + _this->dev->setAntenna(SOAPY_SDR_RX, _this->channelId, _this->antennaList[_this->uiAntennaId]); + _this->saveCurrent(); + } } float gainNameLen = 0;