Update LoRa_APRS_Tracker.cpp
Update custom FREQ,SF,CR,BW intergrated in Setting.h
This commit is contained in:
parent
e552943d2e
commit
7bd004313a
1 changed files with 4 additions and 4 deletions
|
@ -245,7 +245,7 @@ void setup_lora()
|
||||||
LoRa.setPins(LORA_CS, LORA_RST, LORA_IRQ);
|
LoRa.setPins(LORA_CS, LORA_RST, LORA_IRQ);
|
||||||
Serial.println("[INFO] Set LoRa pins!");
|
Serial.println("[INFO] Set LoRa pins!");
|
||||||
|
|
||||||
long freq = 433775000;
|
long freq = FREQ_SET;
|
||||||
Serial.print("[INFO] frequency: ");
|
Serial.print("[INFO] frequency: ");
|
||||||
Serial.println(freq);
|
Serial.println(freq);
|
||||||
if (!LoRa.begin(freq)) {
|
if (!LoRa.begin(freq)) {
|
||||||
|
@ -253,9 +253,9 @@ void setup_lora()
|
||||||
show_display("ERROR", "Starting LoRa failed!");
|
show_display("ERROR", "Starting LoRa failed!");
|
||||||
while (1);
|
while (1);
|
||||||
}
|
}
|
||||||
LoRa.setSpreadingFactor(12);
|
LoRa.setSpreadingFactor(SF_SET);
|
||||||
LoRa.setSignalBandwidth(125E3);
|
LoRa.setSignalBandwidth(BW_SET);
|
||||||
LoRa.setCodingRate4(5);
|
LoRa.setCodingRate4(CR_SET);
|
||||||
LoRa.enableCrc();
|
LoRa.enableCrc();
|
||||||
|
|
||||||
LoRa.setTxPower(20);
|
LoRa.setTxPower(20);
|
||||||
|
|
Loading…
Reference in a new issue