Update RFM69.cpp
This commit is contained in:
parent
f21498fa91
commit
9d4263c57b
|
|
@ -132,7 +132,7 @@ void RFM69::setAddress(byte addr)
|
||||||
|
|
||||||
// set output power: 0=min, 31=max
|
// set output power: 0=min, 31=max
|
||||||
// this results in a "weaker" transmitted signal, and directly results in a lower RSSI at the receiver
|
// this results in a "weaker" transmitted signal, and directly results in a lower RSSI at the receiver
|
||||||
void RFM69Network::setPowerLevel(byte powerLevel)
|
void RFM69::setPowerLevel(byte powerLevel)
|
||||||
{
|
{
|
||||||
_powerLevel = powerLevel;
|
_powerLevel = powerLevel;
|
||||||
writeReg(REG_PALEVEL, (readReg(REG_PALEVEL) & 0xE0) | (_powerLevel > 31 ? 31 : _powerLevel));
|
writeReg(REG_PALEVEL, (readReg(REG_PALEVEL) & 0xE0) | (_powerLevel > 31 ? 31 : _powerLevel));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue