1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-09-29 15:30:52 +00:00

Fix Multichannel_File_Signal_Source

The constructor was not getting right the SignalSource.RF_channels value (role was moved before, so it was unusable)
This commit is contained in:
Carles Fernandez 2021-02-17 13:34:27 +01:00
parent f703990a09
commit 6d41fc8fb2
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -6,13 +6,10 @@
* *
* ----------------------------------------------------------------------------- * -----------------------------------------------------------------------------
* *
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors) * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
*
* GNSS-SDR is a software defined Global Navigation
* Satellite Systems receiver
*
* This file is part of GNSS-SDR. * This file is part of GNSS-SDR.
* *
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* *
* ----------------------------------------------------------------------------- * -----------------------------------------------------------------------------
@ -23,7 +20,6 @@
#include "gnss_sdr_string_literals.h" #include "gnss_sdr_string_literals.h"
#include <utility> // move #include <utility> // move
using namespace std::string_literals; using namespace std::string_literals;
std::string SignalSourceBase::role() std::string SignalSourceBase::role()
@ -42,6 +38,6 @@ size_t SignalSourceBase::getRfChannels() const
} }
SignalSourceBase::SignalSourceBase(ConfigurationInterface const* configuration, std::string role, std::string impl) SignalSourceBase::SignalSourceBase(ConfigurationInterface const* configuration, std::string role, std::string impl)
: role_(std::move(role)), implementation_(std::move(impl)), rfChannels_(configuration->property(role + ".RF_channels"s, 1U)) : role_(std::move(role)), implementation_(std::move(impl)), rfChannels_(configuration->property(role_ + ".RF_channels"s, 1U))
{ {
} }