Fixed flapping tx bug
This commit is contained in:
parent
76635932a2
commit
ad04e0faad
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user