TX power moved to configuration

This commit is contained in:
Pawel Spychalski
2017-11-23 14:41:11 +01:00
parent 52daef7667
commit 8ffaccbd5f
3 changed files with 11 additions and 0 deletions

View File

@@ -156,10 +156,14 @@ void setup(void)
while (true);
}
//Configure LoRa module
LoRa.setSignalBandwidth(radioState.loraBandwidth);
LoRa.setSpreadingFactor(radioState.loraSpreadingFactor);
LoRa.setCodingRate4(radioState.loraCodingRate);
LoRa.setTxPower(radioState.loraTxPower);
LoRa.enableCrc();
//Setup ISR callback and start receiving
LoRa.onReceive(onReceive);
LoRa.receive();