From c679bec8866366d978bc3009e8677db8a5a16cd6 Mon Sep 17 00:00:00 2001 From: Casey Halverson Date: Tue, 14 Jul 2015 20:10:39 -0700 Subject: [PATCH] some additional fixes for serial transceiver removed old setrx/settx stuff --- examples/SerialTransceiver/SerialTransceiver.ino | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/SerialTransceiver/SerialTransceiver.ino b/examples/SerialTransceiver/SerialTransceiver.ino index 29f32e8..400c20f 100644 --- a/examples/SerialTransceiver/SerialTransceiver.ino +++ b/examples/SerialTransceiver/SerialTransceiver.ino @@ -104,8 +104,7 @@ void loop() { case 32: // space - transmit if(repeater == 1) { radio.frequency(tx); } - radio.setRX(0); - radio.setTX(1); + radio.setModeTransmit(); state = 10; Serial.print("#TX,ON;"); timer = millis(); @@ -181,7 +180,7 @@ void loop() { } 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; } } }