sidekiq: update cur_rx_gain_db inside card sub-module

master
Ismael Gomez 3 years ago committed by Xavier Arteaga
parent fd2eef132d
commit e1313cce74

@ -536,7 +536,6 @@ int rf_skiq_set_rx_gain(void* h_, double rx_gain)
for (uint32_t i = 0; i < h->nof_cards; i++) { for (uint32_t i = 0; i < h->nof_cards; i++) {
rf_skiq_card_set_rx_gain_db(&h->cards[i], h->nof_ports, rx_gain); rf_skiq_card_set_rx_gain_db(&h->cards[i], h->nof_ports, rx_gain);
h->cards[i].cur_rx_gain_db = rx_gain;
} }
return SRSRAN_SUCCESS; return SRSRAN_SUCCESS;
@ -583,7 +582,6 @@ int rf_skiq_set_rx_gain_ch(void* h_, uint32_t ch, double rx_gain)
} }
rx_gain = rf_skiq_card_set_rx_gain_db(&h->cards[card_idx], port_idx, rx_gain); rx_gain = rf_skiq_card_set_rx_gain_db(&h->cards[card_idx], port_idx, rx_gain);
h->cards[card_idx].cur_rx_gain_db = rx_gain;
return SRSRAN_SUCCESS; return SRSRAN_SUCCESS;
} }

@ -287,6 +287,9 @@ double rf_skiq_card_set_rx_gain_db(rf_skiq_card_t* q, uint32_t port_idx, double
} }
} }
// Update current rx_gain
q->cur_rx_gain_db = gain_db;
return gain_db; return gain_db;
} }

Loading…
Cancel
Save