mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-05 14:37:02 +00:00
More checking for the DMR Start command.
This commit is contained in:
parent
90186cbf90
commit
d6e5b03141
1 changed files with 2 additions and 2 deletions
|
|
@ -459,10 +459,10 @@ void CSerialPort::process()
|
|||
if (m_dmrEnable) {
|
||||
err = 4U;
|
||||
if (m_len == 4U) {
|
||||
if (m_buffer[3U] == 0x01U && m_modemState == STATE_DMR) {
|
||||
if (m_buffer[3U] == 0x01U && m_modemState == STATE_DMR && !m_tx) {
|
||||
dmrTX.setStart(true);
|
||||
err = 0U;
|
||||
} else if (m_buffer[3U] == 0x00U && m_modemState == STATE_DMR) {
|
||||
} else if (m_buffer[3U] == 0x00U && m_modemState == STATE_DMR && m_tx) {
|
||||
dmrTX.setStart(false);
|
||||
err = 0U;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue