Add additional check for full duplex mode

pull/32/head
Andy CA6JAU 8 years ago
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;

@ -24,7 +24,7 @@
#define VER_MAJOR "1"
#define VER_MINOR "3"
#define VER_REV "1"
#define VER_REV "2"
#define VERSION_DATE "20180218"
#if defined(ZUMSPOT_ADF7021)

Loading…
Cancel
Save

Powered by TurnKey Linux.