Merge pull request #688 from brghena/fix-SX12xx-settings-examples

Fix args to begin() in SX12xx settings examples
This commit is contained in:
Jan Gromeš 2023-03-05 14:56:21 +01:00 committed by GitHub
commit 50574d6676
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -74,7 +74,7 @@ void setup() {
// sync word: 0x34 (public network/LoRaWAN) // sync word: 0x34 (public network/LoRaWAN)
// output power: 2 dBm // output power: 2 dBm
// preamble length: 20 symbols // preamble length: 20 symbols
state = radio2.begin(915.0, 500.0, 6, 5, 0x34, 20); state = radio2.begin(915.0, 500.0, 6, 5, 0x34, 2, 20);
if (state == RADIOLIB_ERR_NONE) { if (state == RADIOLIB_ERR_NONE) {
Serial.println(F("success!")); Serial.println(F("success!"));
} else { } else {

View file

@ -65,9 +65,10 @@ void setup() {
// bandwidth: 1625.0 kHz // bandwidth: 1625.0 kHz
// spreading factor: 7 // spreading factor: 7
// coding rate: 5 // coding rate: 5
// sync word: 0x12 (private network)
// output power: 2 dBm // output power: 2 dBm
// preamble length: 20 symbols // preamble length: 20 symbols
state = radio2.begin(2450.0, 1625.0, 7, 5, 2, 20); state = radio2.begin(2450.0, 1625.0, 7, 5, 0x12, 2, 20);
if (state == RADIOLIB_ERR_NONE) { if (state == RADIOLIB_ERR_NONE) {
Serial.println(F("success!")); Serial.println(F("success!"));
} else { } else {