Skip to content

Commit 9eaea34

Browse files
committed
use default sync word for now until we figure out sx1276
1 parent c85bc1d commit 9eaea34

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/lib/SX127xDriver/SX127xRegs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ typedef enum
187187
#define SX127X_FIFO_RX_BASE_ADDR_MAX 0b00000000 // 7 0 allocate the entire FIFO buffer for RX only
188188

189189
// SX127X_REG_SYNC_WORD
190-
#define SX127X_SYNC_WORD 0xC8 // 200 0 default ExpressLRS sync word - 200Hz
191-
// #define SX127X_SYNC_WORD 0x12 // 18 0 default LoRa sync word
190+
//#define SX127X_SYNC_WORD 0xC8 // 200 0 default ExpressLRS sync word - 200Hz
191+
#define SX127X_SYNC_WORD 0x12 // 18 0 default LoRa sync word
192192
#define SX127X_SYNC_WORD_LORAWAN 0x34 // 52 0 sync word reserved for LoRaWAN networks
193193

194194
#define IRQpin 26

src/src/rx_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ void setup()
702702

703703
Radio.currFreq = GetInitialFreq();
704704
#if !defined(Regulatory_Domain_ISM_2400)
705-
Radio.currSyncWord = UID[3];
705+
//Radio.currSyncWord = UID[3];
706706
#endif
707707
bool init_success = Radio.Begin();
708708
while (!init_success)

src/src/tx_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ void setup()
619619
POWERMGNT.init();
620620
Radio.currFreq = GetInitialFreq(); //set frequency first or an error will occur!!!
621621
#if !(defined(TARGET_TX_ESP32_E28_SX1280_V1) || defined(TARGET_TX_ESP32_SX1280_V1) || defined(TARGET_RX_ESP8266_SX1280_V1) || defined(Regulatory_Domain_ISM_2400))
622-
Radio.currSyncWord = UID[3];
622+
//Radio.currSyncWord = UID[3];
623623
#endif
624624
bool init_success = Radio.Begin();
625625
while (!init_success)

0 commit comments

Comments
 (0)