From 694c54d4f2a7260cfaa44098756301a0db0bdb22 Mon Sep 17 00:00:00 2001 From: Petr Kracik Date: Fri, 3 Apr 2026 17:30:37 +0200 Subject: [PATCH] SX1276 used bad Sync word, caused radio init error -2 --- src/helpers/radiolib/CustomSX1276.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/radiolib/CustomSX1276.h b/src/helpers/radiolib/CustomSX1276.h index bee2527431..a371045def 100644 --- a/src/helpers/radiolib/CustomSX1276.h +++ b/src/helpers/radiolib/CustomSX1276.h @@ -39,7 +39,7 @@ class CustomSX1276 : public SX1276 { if (spi) spi->begin(P_LORA_SCLK, P_LORA_MISO, P_LORA_MOSI); #endif #endif - int status = begin(LORA_FREQ, LORA_BW, LORA_SF, cr, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 16); + int status = begin(LORA_FREQ, LORA_BW, LORA_SF, cr, RADIOLIB_SX127X_SYNC_WORD, LORA_TX_POWER, 16); // if radio init fails with -707/-706, try again with tcxo voltage set to 0.0f if (status != RADIOLIB_ERR_NONE) { Serial.print("ERROR: radio init failed: ");