Missed SX1261 PA Config flag in previous commit
This commit is contained in:
parent
da6072cf73
commit
111d9fa625
1 changed files with 2 additions and 2 deletions
|
@ -17,10 +17,10 @@ int16_t SX1261::setOutputPower(int8_t power) {
|
||||||
// set PA config for optimal consumption as described in section 13-21 of the datasheet:
|
// set PA config for optimal consumption as described in section 13-21 of the datasheet:
|
||||||
// the final column of Table 13-21 suggests that the value passed in SetTxParams is actually scaled depending on the parameters of setPaConfig. However, testing suggests this isn't the case.
|
// the final column of Table 13-21 suggests that the value passed in SetTxParams is actually scaled depending on the parameters of setPaConfig. However, testing suggests this isn't the case.
|
||||||
if (power > 10) {
|
if (power > 10) {
|
||||||
state = SX126x::setPaConfig(0x04, 0x00, SX126X_PA_CONFIG_HP_MAX/*0x07*/);
|
state = SX126x::setPaConfig(0x04, SX126X_PA_CONFIG_SX1261, 0x00);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
state = SX126x::setPaConfig(0x01, 0x00, 0x05);
|
state = SX126x::setPaConfig(0x01, SX126X_PA_CONFIG_SX1261, 0x00);
|
||||||
}
|
}
|
||||||
if (state != ERR_NONE) {
|
if (state != ERR_NONE) {
|
||||||
return(state);
|
return(state);
|
||||||
|
|
Loading…
Add table
Reference in a new issue