Correct interface selection logic

This commit is contained in:
jacob.eva 2024-09-04 18:25:36 +01:00
parent 81aff16c2d
commit cc4010fc95
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -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];