xmlrpc get_trx_state

* change to same logic used in get_trx_status
This commit is contained in:
dave-w1hkj 2025-07-20 20:57:09 -05:00 committed by dave-w1hkj
parent 517f6fd149
commit 8d95ca4a05

View file

@ -1688,13 +1688,10 @@ public:
}
void execute(const xmlrpc_c::paramList& params, xmlrpc_c::value* retval)
{
std::string st;
if (btnTune->value())
st = "tune";
else if (wf->xmtrcv->value())
st = "tx";
else
st = "rx";
std::string st = "rx";
if (trx_state == STATE_TX) st = "tx";
else if (trx_state == STATE_TUNE) st = "tune";
LOG_INFO("[%s] main.get_trx_status: %s",
XmlRpc::client_id.c_str(),
st.c_str());