mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-05-15 04:52:16 -04:00
Improved queue and buffering
This commit is contained in:
parent
a7a6e863b5
commit
4bfcfb5dc8
6 changed files with 1567 additions and 1547 deletions
4
LoRa.cpp
4
LoRa.cpp
|
@ -368,8 +368,7 @@ void LoRaClass::sleep()
|
|||
writeRegister(REG_OP_MODE, MODE_LONG_RANGE_MODE | MODE_SLEEP);
|
||||
}
|
||||
|
||||
void LoRaClass::setTxPower(int level, int outputPin)
|
||||
{
|
||||
void LoRaClass::setTxPower(int level, int outputPin) {
|
||||
if (PA_OUTPUT_RFO_PIN == outputPin) {
|
||||
// RFO
|
||||
if (level < 0) {
|
||||
|
@ -379,6 +378,7 @@ void LoRaClass::setTxPower(int level, int outputPin)
|
|||
}
|
||||
|
||||
writeRegister(REG_PA_CONFIG, 0x70 | level);
|
||||
|
||||
} else {
|
||||
// PA BOOST
|
||||
if (level < 2) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue