From 8b7d4611e0e18fd8a77dbdd30d57f61fd35a74b9 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 14 Jan 2022 11:01:46 +0100 Subject: [PATCH] Fix DCD detection broken from pull request #13 --- RNode_Firmware.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RNode_Firmware.ino b/RNode_Firmware.ino index ce165e3..5fa3802 100644 --- a/RNode_Firmware.ino +++ b/RNode_Firmware.ino @@ -631,9 +631,9 @@ void serialCallback(uint8_t sbyte) { void updateModemStatus() { uint8_t status = LoRa.modemStatus(); last_status_update = millis(); - if ((status & SIG_DETECT) == SIG_DETECT) { stat_signal_detected = true; } else { stat_signal_detected = false; } - if ((status & SIG_SYNCED) == SIG_SYNCED) { stat_signal_synced = true; } else { stat_signal_synced = false; } - if ((status & RX_ONGOING) == RX_ONGOING) { stat_rx_ongoing = true; } else { stat_rx_ongoing = false; } + if (status & SIG_DETECT == SIG_DETECT) { stat_signal_detected = true; } else { stat_signal_detected = false; } + if (status & SIG_SYNCED == SIG_SYNCED) { stat_signal_synced = true; } else { stat_signal_synced = false; } + if (status & RX_ONGOING == RX_ONGOING) { stat_rx_ongoing = true; } else { stat_rx_ongoing = false; } if (stat_signal_detected || stat_signal_synced || stat_rx_ongoing) { if (dcd_count < dcd_threshold) {