mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 12:10:34 +00:00
Apply clang-tidy check: readability-string-compare
This commit is contained in:
parent
915c2859f2
commit
16dd5ec241
@ -70,7 +70,7 @@ GalileoE1DllPllVemlTrackingFpga::GalileoE1DllPllVemlTrackingFpga(
|
|||||||
uint32_t num_prev_assigned_ch_1C = 0;
|
uint32_t num_prev_assigned_ch_1C = 0;
|
||||||
std::string device_io_name;
|
std::string device_io_name;
|
||||||
|
|
||||||
if (configuration->property("Tracking_1C.devicename", default_device_name_GPS_L1).compare(default_device_name_GPS_L1) == 0)
|
if (configuration->property("Tracking_1C.devicename", default_device_name_GPS_L1) == default_device_name_GPS_L1)
|
||||||
{
|
{
|
||||||
for (uint32_t k = 0; k < configuration->property("Channels_1C.count", 0); k++)
|
for (uint32_t k = 0; k < configuration->property("Channels_1C.count", 0); k++)
|
||||||
{
|
{
|
||||||
@ -82,7 +82,7 @@ GalileoE1DllPllVemlTrackingFpga::GalileoE1DllPllVemlTrackingFpga(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (configuration->property("Tracking_1C.devicename", std::string("")).compare(device_name) != 0)
|
if (configuration->property("Tracking_1C.devicename", std::string("")) != device_name)
|
||||||
{
|
{
|
||||||
num_prev_assigned_ch_1C = configuration->property("Channels_1C.count", 0);
|
num_prev_assigned_ch_1C = configuration->property("Channels_1C.count", 0);
|
||||||
}
|
}
|
||||||
|
@ -160,7 +160,7 @@ void GpsL1CaDllPllTrackingFpga::set_channel(unsigned int channel)
|
|||||||
bool alt_device_found = false; // alternative compatible HW accelerator device not found by default
|
bool alt_device_found = false; // alternative compatible HW accelerator device not found by default
|
||||||
|
|
||||||
// If the HW accelerator is the default one in the L1 band then look for an alternative hardware accelerator
|
// If the HW accelerator is the default one in the L1 band then look for an alternative hardware accelerator
|
||||||
if (device_name.compare(default_device_name_GPS_L1) == 0)
|
if (device_name == default_device_name_GPS_L1)
|
||||||
{
|
{
|
||||||
if (find_uio_dev_file_name(device_io_name, default_device_name_Galileo_E1, channel - num_prev_assigned_ch) < 0)
|
if (find_uio_dev_file_name(device_io_name, default_device_name_Galileo_E1, channel - num_prev_assigned_ch) < 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user