libbladeRF: improve RFIC BIST loopback error message
Change from log_debug to log_error and provide clearer message when RFIC BIST loopback is attempted in FPGA tuning mode. The new message explicitly states the requirement (HOST mode) and current state (FPGA mode), making it actionable for users.
This commit is contained in:
parent
2935ce5251
commit
7d7d87f686
1 changed files with 3 additions and 2 deletions
|
|
@ -2471,8 +2471,9 @@ static int bladerf2_set_loopback(struct bladerf *dev, bladerf_loopback mode)
|
|||
|
||||
IF_COMMAND_MODE(dev, RFIC_COMMAND_FPGA, {
|
||||
if (BLADERF_LB_RFIC_BIST == mode) {
|
||||
log_debug(
|
||||
"%s: BLADERF_LB_RFIC_BIST not supported in FPGA command mode\n",
|
||||
log_error(
|
||||
"%s: RFIC BIST requires HOST tuning mode (currently FPGA). "
|
||||
"Check BLADERF_DEFAULT_TUNING_MODE env var.\n",
|
||||
__FUNCTION__);
|
||||
return BLADERF_ERR_UNSUPPORTED;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue