mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
fix(bt): update the function to get tx power table
This commit is contained in:
@@ -17,7 +17,11 @@ wr_btdm_external_bb_get_tx_pwr_table(uint8_t *length, uint8_t modem_cfg)
|
|||||||
assert(length != NULL);
|
assert(length != NULL);
|
||||||
assert (modem_cfg <= 2);
|
assert (modem_cfg <= 2);
|
||||||
// TODO: replace with bt_bb_tx_pwr_table_get when all the targets(h4, s31, etc) support this API
|
// TODO: replace with bt_bb_tx_pwr_table_get when all the targets(h4, s31, etc) support this API
|
||||||
return bt_bb_get_tx_pwr_table(length);
|
if (modem_cfg == 2) { // BREDR
|
||||||
|
return bt_bb_tx_pwr_table_get(length, modem_cfg);
|
||||||
|
} else {
|
||||||
|
return bt_bb_get_tx_pwr_table(length);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user