Allow for TX only when not already transmitting

This commit is contained in:
Pawel Spychalski (DzikuVx)
2018-01-02 21:16:12 +01:00
parent cb3c510815
commit 702a8331fe

View File

@@ -319,6 +319,7 @@ void loop(void)
#ifdef DEVICE_MODE_TX #ifdef DEVICE_MODE_TX
if ( if (
radioState.deviceState == RADIO_STATE_RX &&
qsp.protocolState == QSP_STATE_IDLE && qsp.protocolState == QSP_STATE_IDLE &&
qsp.lastTxSlotTimestamp + TX_TRANSMIT_SLOT_RATE < currentMillis qsp.lastTxSlotTimestamp + TX_TRANSMIT_SLOT_RATE < currentMillis
) { ) {