BladeRF: tx gain range was incorrectly obtained from rx module

master
Ismael Gomez 5 years ago
parent 9325aaddf2
commit 4b5353e87a

@ -203,7 +203,7 @@ int rf_blade_open(char *args, void **h)
return status; 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)) { if ((status != 0) || (range_tx == NULL)) {
ERROR("Failed to get TX gain range: %s\n", bladerf_strerror(status)); ERROR("Failed to get TX gain range: %s\n", bladerf_strerror(status));
return status; return status;

Loading…
Cancel
Save