Skip to content

Commit 187eea1

Browse files
author
Scott Powell
committed
* Preamble now 16 (for most variants)
1 parent c4c5d18 commit 187eea1

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/helpers/CustomLLCC68.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ class CustomLLCC68 : public LLCC68 {
4242
if (spi) spi->begin(P_LORA_SCLK, P_LORA_MISO, P_LORA_MOSI);
4343
#endif
4444
#endif
45-
int status = begin(LORA_FREQ, LORA_BW, LORA_SF, cr, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 8, tcxo);
45+
int status = begin(LORA_FREQ, LORA_BW, LORA_SF, cr, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 16, tcxo);
4646
// if radio init fails with -707/-706, try again with tcxo voltage set to 0.0f
4747
if (status == RADIOLIB_ERR_SPI_CMD_FAILED || status == RADIOLIB_ERR_SPI_CMD_INVALID) {
4848
#define SX126X_DIO3_TCXO_VOLTAGE (0.0f);
4949
tcxo = SX126X_DIO3_TCXO_VOLTAGE;
50-
status = begin(LORA_FREQ, LORA_BW, LORA_SF, cr, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 8, tcxo);
50+
status = begin(LORA_FREQ, LORA_BW, LORA_SF, cr, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 16, tcxo);
5151
}
5252
if (status != RADIOLIB_ERR_NONE) {
5353
Serial.print("ERROR: radio init failed: ");

src/helpers/CustomSX1262.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ class CustomSX1262 : public SX1262 {
4242
if (spi) spi->begin(P_LORA_SCLK, P_LORA_MISO, P_LORA_MOSI);
4343
#endif
4444
#endif
45-
int status = begin(LORA_FREQ, LORA_BW, LORA_SF, cr, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 8, tcxo);
45+
int status = begin(LORA_FREQ, LORA_BW, LORA_SF, cr, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 16, tcxo);
4646
// if radio init fails with -707/-706, try again with tcxo voltage set to 0.0f
4747
if (status == RADIOLIB_ERR_SPI_CMD_FAILED || status == RADIOLIB_ERR_SPI_CMD_INVALID) {
4848
#define SX126X_DIO3_TCXO_VOLTAGE (0.0f);
4949
tcxo = SX126X_DIO3_TCXO_VOLTAGE;
50-
status = begin(LORA_FREQ, LORA_BW, LORA_SF, cr, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 8, tcxo);
50+
status = begin(LORA_FREQ, LORA_BW, LORA_SF, cr, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 16, tcxo);
5151
}
5252
if (status != RADIOLIB_ERR_NONE) {
5353
Serial.print("ERROR: radio init failed: ");

src/helpers/CustomSX1268.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ class CustomSX1268 : public SX1268 {
4242
if (spi) spi->begin(P_LORA_SCLK, P_LORA_MISO, P_LORA_MOSI);
4343
#endif
4444
#endif
45-
int status = begin(LORA_FREQ, LORA_BW, LORA_SF, cr, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 8, tcxo);
45+
int status = begin(LORA_FREQ, LORA_BW, LORA_SF, cr, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 16, tcxo);
4646
// if radio init fails with -707/-706, try again with tcxo voltage set to 0.0f
4747
if (status == RADIOLIB_ERR_SPI_CMD_FAILED || status == RADIOLIB_ERR_SPI_CMD_INVALID) {
4848
#define SX126X_DIO3_TCXO_VOLTAGE (0.0f);
4949
tcxo = SX126X_DIO3_TCXO_VOLTAGE;
50-
status = begin(LORA_FREQ, LORA_BW, LORA_SF, cr, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 8, tcxo);
50+
status = begin(LORA_FREQ, LORA_BW, LORA_SF, cr, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 16, tcxo);
5151
}
5252
if (status != RADIOLIB_ERR_NONE) {
5353
Serial.print("ERROR: radio init failed: ");

src/helpers/CustomSX1276.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class CustomSX1276 : public SX1276 {
3939
if (spi) spi->begin(P_LORA_SCLK, P_LORA_MISO, P_LORA_MOSI);
4040
#endif
4141
#endif
42-
int status = begin(LORA_FREQ, LORA_BW, LORA_SF, cr, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 8);
42+
int status = begin(LORA_FREQ, LORA_BW, LORA_SF, cr, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 16);
4343
// if radio init fails with -707/-706, try again with tcxo voltage set to 0.0f
4444
if (status != RADIOLIB_ERR_NONE) {
4545
Serial.print("ERROR: radio init failed: ");

0 commit comments

Comments
 (0)