mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-07-30 01:58:34 -04:00
RX turnaround timing
This commit is contained in:
parent
be98b0d7f7
commit
8a604f911b
2 changed files with 7 additions and 6 deletions
|
@ -339,9 +339,7 @@ void updateModemStatus() {
|
|||
|
||||
void checkModemStatus() {
|
||||
if (millis()-last_status_update >= status_interval_ms) {
|
||||
led_tx_on();
|
||||
updateModemStatus();
|
||||
led_tx_off();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -352,9 +350,12 @@ void loop() {
|
|||
if (!dcd_waiting) updateModemStatus();
|
||||
if (!dcd && !dcd_led) {
|
||||
if (dcd_waiting) delay(lora_rx_turnaround_ms);
|
||||
outbound_ready = false;
|
||||
dcd_waiting = false;
|
||||
transmit(frame_len);
|
||||
updateModemStatus();
|
||||
if (!dcd) {
|
||||
outbound_ready = false;
|
||||
dcd_waiting = false;
|
||||
transmit(frame_len);
|
||||
}
|
||||
} else {
|
||||
dcd_waiting = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue