mirror of
https://github.com/juribeparada/MMDVM_HS.git
synced 2025-12-06 07:12:08 +01:00
Fix for NAK error using MMDVMCal with simplex firmware
This commit is contained in:
parent
cf557ad690
commit
d1047a4020
|
|
@ -207,13 +207,6 @@ uint8_t CSerialPort::setConfig(const uint8_t* data, uint8_t length)
|
||||||
bool ysfLoDev = (data[0U] & 0x08U) == 0x08U;
|
bool ysfLoDev = (data[0U] & 0x08U) == 0x08U;
|
||||||
bool simplex = (data[0U] & 0x80U) == 0x80U;
|
bool simplex = (data[0U] & 0x80U) == 0x80U;
|
||||||
|
|
||||||
#if !defined(DUPLEX)
|
|
||||||
if (!simplex) {
|
|
||||||
DEBUG1("Full duplex not supported with this firmware");
|
|
||||||
return 6U;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
m_debug = (data[0U] & 0x10U) == 0x10U;
|
m_debug = (data[0U] & 0x10U) == 0x10U;
|
||||||
|
|
||||||
bool dstarEnable = (data[1U] & 0x01U) == 0x01U;
|
bool dstarEnable = (data[1U] & 0x01U) == 0x01U;
|
||||||
|
|
@ -284,6 +277,13 @@ uint8_t CSerialPort::setConfig(const uint8_t* data, uint8_t length)
|
||||||
|
|
||||||
m_duplex = !simplex;
|
m_duplex = !simplex;
|
||||||
|
|
||||||
|
#if !defined(DUPLEX)
|
||||||
|
if (m_duplex && m_calState == STATE_IDLE && modemState != STATE_DSTARCAL) {
|
||||||
|
DEBUG1("Full duplex not supported with this firmware");
|
||||||
|
return 6U;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
dstarTX.setTXDelay(txDelay);
|
dstarTX.setTXDelay(txDelay);
|
||||||
ysfTX.setTXDelay(txDelay);
|
ysfTX.setTXDelay(txDelay);
|
||||||
p25TX.setTXDelay(txDelay);
|
p25TX.setTXDelay(txDelay);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue