Skip to content

Commit 831a42d

Browse files
committed
Fix build
1 parent 2e25b7c commit 831a42d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wifi/wfbng_link.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,10 @@ void WfbngLink::start_link_quality_thread() {
445445
// Best values of the antennas.
446446
float best_rssi = round(std::max(quality.rssi[0], quality.rssi[1]));
447447
float best_snr = std::max(quality.snr[0], quality.snr[1]);
448-
float best_lq = std::max(quality.lq[0], quality.lq[1]);
448+
float best_link_score = std::max(quality.link_score[0], quality.link_score[1]);
449449

450450
// Map to 1000..2000
451-
int lq_for_uplink = round(map_range(best_lq, 0, 100, 1000, 2000));
451+
int lq_for_uplink = round(map_range(best_link_score, 0, 100, 1000, 2000));
452452

453453
if (quality.total_last_second != 0) {
454454
packet_loss_ =

0 commit comments

Comments
 (0)