kopia lustrzana https://github.com/skuep/AIOC
Reverted to using DTR=HIGH && RTS=LOW for asserting the PTT, since PTT would otherwise interfere during CHIRP programming with some radios (issue #11)
rodzic
b5814223f3
commit
8c076abc7e
|
@ -168,11 +168,7 @@ void tud_cdc_line_state_cb(uint8_t itf, bool dtr, bool rts)
|
|||
TU_ASSERT(itf == 0, /**/);
|
||||
|
||||
/* PTT Encoding logic */
|
||||
uint8_t pttMask = (dtr ? PTT_MASK_PTT1 : 0);
|
||||
|
||||
#if AIOC_ENABLE_PTT2
|
||||
pttMask |= (rts ? PTT_MASK_PTT2 : 0);
|
||||
#endif
|
||||
uint8_t pttMask = ((dtr && !rts) ? PTT_MASK_PTT1 : 0);
|
||||
|
||||
if (! (USB_SERIAL_UART->CR1 & USART_CR1_TE) ) {
|
||||
/* Enable PTT only when UART transmitter is not currently transmitting */
|
||||
|
|
Ładowanie…
Reference in New Issue