Fix args to begin() in SX12xx settings examples

pull/688/head
Branden Ghena 2023-03-02 22:28:40 -06:00
rodzic 40450e699c
commit 7c083e0796
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -74,7 +74,7 @@ void setup() {
// sync word: 0x34 (public network/LoRaWAN)
// output power: 2 dBm
// 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) {
Serial.println(F("success!"));
} else {

Wyświetl plik

@ -65,9 +65,10 @@ void setup() {
// bandwidth: 1625.0 kHz
// spreading factor: 7
// coding rate: 5
// sync word: 0x12 (private network)
// output power: 2 dBm
// 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) {
Serial.println(F("success!"));
} else {