From cc4010fc95daaa1124f920d4ab40e1001da468ee Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Wed, 4 Sep 2024 18:25:36 +0100 Subject: [PATCH] Correct interface selection logic --- RNode_Firmware_CE.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNode_Firmware_CE.ino b/RNode_Firmware_CE.ino index e208b5c..c307f28 100644 --- a/RNode_Firmware_CE.ino +++ b/RNode_Firmware_CE.ino @@ -1201,7 +1201,7 @@ void loop() { // loop, it still needs to be the first to transmit, so check if this // is the case. for (int j = 0; j < INTERFACE_COUNT; j++) { - if (!interface_obj_sorted[j]->calculateALock() || interface_obj_sorted[j]->getRadioOnline()) { + if (!interface_obj_sorted[j]->calculateALock() && interface_obj_sorted[j]->getRadioOnline()) { if (interface_obj_sorted[j]->getBitrate() > selected_radio->getBitrate()) { if (queue_height[interface_obj_sorted[j]->getIndex()] > 0) { selected_radio = interface_obj_sorted[j];