1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-20 06:38:36 -04:00

BladeRF2: fixed global gain setting. Fixes issue #630

This commit is contained in:
f4exb
2020-09-14 23:04:35 +02:00
parent 7fdeb54f52
commit 79b321952e
12 changed files with 127 additions and 70 deletions
+6 -2
View File
@@ -455,7 +455,7 @@ void DeviceBladeRF2::getBandwidthRangeTx(int& min, int& max, int& step)
}
}
void DeviceBladeRF2::getGlobalGainRangeRx(int& min, int& max, int& step)
void DeviceBladeRF2::getGlobalGainRangeRx(int& min, int& max, int& step, float& scale)
{
if (m_dev)
{
@@ -474,11 +474,12 @@ void DeviceBladeRF2::getGlobalGainRangeRx(int& min, int& max, int& step)
min = range->min;
max = range->max;
step = range->step;
scale = range->scale;
}
}
}
void DeviceBladeRF2::getGlobalGainRangeTx(int& min, int& max, int& step)
void DeviceBladeRF2::getGlobalGainRangeTx(int& min, int& max, int& step, float& scale)
{
if (m_dev)
{
@@ -497,6 +498,9 @@ void DeviceBladeRF2::getGlobalGainRangeTx(int& min, int& max, int& step)
min = range->min;
max = range->max;
step = range->step;
scale = range->scale;
qDebug("DeviceBladeRF2::getGlobalGainRangeTx: min: %d max: %d step: %d scale: %f",
min, max, step, scale);
}
}
}