Skip to content

Commit

Permalink
exp rssi
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Aug 9, 2023
1 parent 0eccaa2 commit ac5f286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WBTxRx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ void WBTxRx::on_new_packet(const uint8_t wlan_idx, const pcap_pkthdr &hdr,
const auto rssi=parsedPacket->allAntennaValues[0].rssi;
auto opt_minmaxavg= this_wifi_card_calc.card_rssi.add_and_recalculate_if_needed(rssi);
if(opt_minmaxavg.has_value()){
this_wifi_card_stats.antenna1_dbm=opt_minmaxavg.value().avg;
this_wifi_card_stats.card_dbm=opt_minmaxavg.value().avg;
if(m_options.debug_rssi>=1){
m_console->debug("Card{}:{}",wlan_idx, RSSIAccumulator::min_max_avg_to_string(opt_minmaxavg.value(), false));
}
Expand Down

0 comments on commit ac5f286

Please sign in to comment.