BladeRF: tx gain range was incorrectly obtained from rx module

This commit is contained in:
Ismael Gomez 2019-09-28 23:17:55 +02:00
parent 9325aaddf2
commit 4b5353e87a
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ int rf_blade_open(char *args, void **h)
return status;
}
status = bladerf_get_gain_range(handler->dev, BLADERF_RX_X1, &range_tx);
status = bladerf_get_gain_range(handler->dev, BLADERF_TX_X1, &range_tx);
if ((status != 0) || (range_tx == NULL)) {
ERROR("Failed to get TX gain range: %s\n", bladerf_strerror(status));
return status;