Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RF95] txpower bug - cfg register gets overwritten #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion RH_RF95.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ void RH_RF95::setTxPower(int8_t power, bool useRFO)
// The documentation is pretty confusing on this topic: PaSelect says the max power is 20dBm,
// but OutputPower claims it would be 17dBm.
// My measurements show 20dBm is correct
spiWrite(RH_RF95_REG_09_PA_CONFIG, RH_RF95_PA_SELECT | (power-5));
spiWrite(RH_RF95_REG_09_PA_CONFIG, RH_RF95_PA_SELECT | RH_RF95_MAX_POWER | (power-2));
}
}

Expand Down