diff --git a/host/calibrate/HostCal.cpp b/host/calibrate/HostCal.cpp index f5b11bad..66dc99fa 100644 --- a/host/calibrate/HostCal.cpp +++ b/host/calibrate/HostCal.cpp @@ -278,6 +278,8 @@ int HostCal::run() yaml::Node modemConf = systemConf["modem"]; + m_debug = modemConf["debug"].as(false); + m_rxTuning = modemConf["rxTuning"].as(0); m_txTuning = modemConf["txTuning"].as(0); @@ -549,6 +551,7 @@ int HostCal::run() sscanf(value, "%d", &rxTuning); m_rxTuning = rxTuning; + m_conf["system"]["modem"]["rxTuning"] = __INT_STR(m_rxTuning); m_rxAdjustedFreq = m_rxFrequency + m_rxTuning; writeRFParams(); @@ -570,6 +573,7 @@ int HostCal::run() sscanf(value, "%d", &txTuning); m_txTuning = txTuning; + m_conf["system"]["modem"]["txTuning"] = __INT_STR(m_txTuning); m_txAdjustedFreq = m_txFrequency + m_txTuning; writeRFParams(); diff --git a/modem/Modem.cpp b/modem/Modem.cpp index 0378584d..b06e5801 100644 --- a/modem/Modem.cpp +++ b/modem/Modem.cpp @@ -1425,7 +1425,7 @@ bool Modem::writeConfig() // Utils::dump(1U, "Response", m_buffer, m_length); if (resp == RTM_OK && m_buffer[2U] == CMD_NAK) { - LogError(LOG_MODEM, "NAK to the SET_CONFIG command from the modem"); + LogError(LOG_MODEM, "NAK to the SET_CONFIG command from the modem, reason = %u", resp); return false; } diff --git a/modem/Modem.h b/modem/Modem.h index 8267cc7f..5a39c62a 100644 --- a/modem/Modem.h +++ b/modem/Modem.h @@ -149,6 +149,8 @@ namespace modem RSN_INVALID_P25_CORR_COUNT = 16U, + RSN_HS_NO_DUAL_MODE = 32U, + RSN_DMR_DISABLED = 63U, RSN_P25_DISABLED = 64U, };