mirror of
https://github.com/sudomesh/disaster-radio.git
synced 2026-02-20 02:01:18 +01:00
fix error in using RadioLib with TGGO
This commit is contained in:
@@ -349,9 +349,11 @@ void setupLoRa()
|
||||
#endif
|
||||
#ifdef RL_SX1276
|
||||
pinMode(LORA_CS, OUTPUT);
|
||||
pinMode(LORA2_CS, OUTPUT);
|
||||
digitalWrite(LORA_CS, LOW);
|
||||
#ifdef DUAL_LORA
|
||||
pinMode(LORA2_CS, OUTPUT);
|
||||
digitalWrite(LORA2_CS, HIGH);
|
||||
#endif
|
||||
Layer1Class *Layer1_1 = new Layer1Class(&lora, 0, LORA_CS, LORA_RST, LORA_IRQ, 9, 915, 17);
|
||||
#ifdef DUAL_LORA
|
||||
digitalWrite(LORA_CS, HIGH);
|
||||
|
||||
@@ -54,6 +54,14 @@ build_flags = -DTTGO_LORA_V2
|
||||
-DHAS_OLED
|
||||
-I./src
|
||||
; -DLL2_DEBUG
|
||||
;
|
||||
[env:ttgo-lora32-v2-rl]
|
||||
board = ttgo-lora32-v1
|
||||
build_flags = -DTTGO_LORA_V2
|
||||
-DRL_SX1276
|
||||
-DHAS_OLED
|
||||
-I./src
|
||||
; -DLL2_DEBUG
|
||||
|
||||
[env:ttgo-lora32-tbeam]
|
||||
board = ttgo-lora32-v1
|
||||
|
||||
Reference in New Issue
Block a user