mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-16 20:23:02 +00:00
Update iterator when doint insert in a list
This commit is contained in:
parent
2b18ae14fe
commit
ef1e4a4cd8
@ -717,7 +717,7 @@ void GNSSFlowgraph::set_signals_list()
|
|||||||
/*
|
/*
|
||||||
* Ordering the list of signals from configuration file
|
* Ordering the list of signals from configuration file
|
||||||
*/
|
*/
|
||||||
std::list<Gnss_Signal>::const_iterator gnss_it = available_GNSS_signals_.cbegin();
|
std::list<Gnss_Signal>::iterator gnss_it = available_GNSS_signals_.begin();
|
||||||
|
|
||||||
// Pre-assignation if not defined at ChannelX.signal=1C ...? In what order?
|
// Pre-assignation if not defined at ChannelX.signal=1C ...? In what order?
|
||||||
|
|
||||||
@ -737,7 +737,7 @@ void GNSSFlowgraph::set_signals_list()
|
|||||||
{
|
{
|
||||||
Gnss_Signal signal_value = Gnss_Signal(Gnss_Satellite(gnss_system, sat), gnss_signal);
|
Gnss_Signal signal_value = Gnss_Signal(Gnss_Satellite(gnss_system, sat), gnss_signal);
|
||||||
available_GNSS_signals_.remove(signal_value);
|
available_GNSS_signals_.remove(signal_value);
|
||||||
available_GNSS_signals_.insert(gnss_it, signal_value);
|
gnss_it = available_GNSS_signals_.insert(gnss_it, signal_value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user