some additional fixes for serial transceiver

removed old setrx/settx stuff
This commit is contained in:
Casey Halverson 2015-07-14 20:10:39 -07:00
parent e55cb9f221
commit c679bec886
1 changed files with 2 additions and 3 deletions

View File

@ -104,8 +104,7 @@ void loop() {
case 32: // space - transmit case 32: // space - transmit
if(repeater == 1) { radio.frequency(tx); } if(repeater == 1) { radio.frequency(tx); }
radio.setRX(0); radio.setModeTransmit();
radio.setTX(1);
state = 10; state = 10;
Serial.print("#TX,ON;"); Serial.print("#TX,ON;");
timer = millis(); timer = millis();
@ -181,7 +180,7 @@ void loop() {
} }
if(state == 10) { if(state == 10) {
if(millis() > (timer + 500)) { Serial.print("#TX,OFF;");radio.setRX(1); radio.setTX(0); if(repeater == 1) { radio.frequency(freq); } state = 0; txcount = 0; } if(millis() > (timer + 500)) { Serial.print("#TX,OFF;");radio.setModeReceive(); if(repeater == 1) { radio.frequency(freq); } state = 0; txcount = 0; }
} }
} }