Commit 2aae8879 authored by Martin Braun's avatar Martin Braun Committed by michael-west

rfnoc: Replace some [] with .at() in radio_ctrl_impl

This makes it easier to detect errors in derived classes that expect
getters in radio_ctrl_impl to also do error checking.
parent cd6c9697
......@@ -191,42 +191,42 @@ double radio_ctrl_impl::get_rate() const
std::string radio_ctrl_impl::get_tx_antenna(const size_t chan) /* const */
{
return _tx_antenna[chan];
return _tx_antenna.at(chan);
}
std::string radio_ctrl_impl::get_rx_antenna(const size_t chan) /* const */
{
return _rx_antenna[chan];
return _rx_antenna.at(chan);
}
double radio_ctrl_impl::get_tx_frequency(const size_t chan) /* const */
{
return _tx_freq[chan];
return _tx_freq.at(chan);
}
double radio_ctrl_impl::get_rx_frequency(const size_t chan) /* const */
{
return _rx_freq[chan];
return _rx_freq.at(chan);
}
double radio_ctrl_impl::get_tx_gain(const size_t chan) /* const */
{
return _tx_gain[chan];
return _tx_gain.at(chan);
}
double radio_ctrl_impl::get_rx_gain(const size_t chan) /* const */
{
return _rx_gain[chan];
return _rx_gain.at(chan);
}
double radio_ctrl_impl::get_tx_bandwidth(const size_t chan) /* const */
{
return _tx_bandwidth[chan];
return _tx_bandwidth.at(chan);
}
double radio_ctrl_impl::get_rx_bandwidth(const size_t chan) /* const */
{
return _rx_bandwidth[chan];
return _rx_bandwidth.at(chan);
}
/******************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment