mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2024-12-26 07:59:23 -05:00
RX turnaround timing
This commit is contained in:
parent
be98b0d7f7
commit
8a604f911b
2
Config.h
2
Config.h
@ -46,7 +46,7 @@
|
||||
const long serial_baudrate = 115200;
|
||||
const int rssi_offset = 164;
|
||||
|
||||
const int lora_rx_turnaround_ms = 5;
|
||||
const int lora_rx_turnaround_ms = 50;
|
||||
|
||||
// Default LoRa settings
|
||||
int lora_sf = 0;
|
||||
|
@ -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…
Reference in New Issue
Block a user