mirror of
https://github.com/g4klx/MMDVM_HS.git
synced 2026-01-08 09:40:03 +01:00
Add additional check for full duplex mode
This commit is contained in:
parent
48d61d2721
commit
a12d757ff2
|
|
@ -206,6 +206,13 @@ uint8_t CSerialPort::setConfig(const uint8_t* data, uint8_t length)
|
|||
|
||||
bool ysfLoDev = (data[0U] & 0x08U) == 0x08U;
|
||||
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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue