Fixed flapping tx bug

This commit is contained in:
Jim Colderwood 2024-04-04 11:37:46 +01:00
parent 76635932a2
commit ad04e0faad

View File

@ -7,12 +7,11 @@ void tx(repeater* myrpt) {
return;
}
if (!myrpt->transmitter.tx)
return;
serial_writer(&myrpt->serial, "REPEATER: TX OFF");
myrpt->transmitter.tx = false;
digitalWrite(PTT,HIGH);
if (myrpt->state < 2 && myrpt->transmitter.tx) {
serial_writer(&myrpt->serial, "REPEATER: TX OFF");
myrpt->transmitter.tx = false;
digitalWrite(PTT,HIGH);
}
}
void rx(repeater* myrpt) {