Browse Source
Merge pull request #483 from fdlamotte/stm32_preamble
stm32 targets: set preamble to 16
pull/484/head
ripplebiz
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
3 additions and
3 deletions
-
variants/rak3x72/target.cpp
-
variants/wio-e5-dev/target.cpp
-
variants/wio-e5-mini/target.cpp
|
|
|
@ -38,7 +38,7 @@ bool radio_init() { |
|
|
|
|
|
|
|
radio.setRfSwitchTable(rfswitch_pins, rfswitch_table); |
|
|
|
|
|
|
|
int status = radio.begin(LORA_FREQ, LORA_BW, LORA_SF, LORA_CR, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 8, STM32WL_TCXO_VOLTAGE, 0); |
|
|
|
int status = radio.begin(LORA_FREQ, LORA_BW, LORA_SF, LORA_CR, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 16, STM32WL_TCXO_VOLTAGE, 0); |
|
|
|
|
|
|
|
if (status != RADIOLIB_ERR_NONE) { |
|
|
|
Serial.print("ERROR: radio init failed: "); |
|
|
|
|
|
|
|
@ -35,7 +35,7 @@ bool radio_init() { |
|
|
|
|
|
|
|
radio.setRfSwitchTable(rfswitch_pins, rfswitch_table); |
|
|
|
|
|
|
|
int status = radio.begin(LORA_FREQ, LORA_BW, LORA_SF, LORA_CR, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 8, 1.7, 0); |
|
|
|
int status = radio.begin(LORA_FREQ, LORA_BW, LORA_SF, LORA_CR, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 16, 1.7, 0); |
|
|
|
|
|
|
|
if (status != RADIOLIB_ERR_NONE) { |
|
|
|
Serial.print("ERROR: radio init failed: "); |
|
|
|
|
|
|
|
@ -33,7 +33,7 @@ bool radio_init() { |
|
|
|
|
|
|
|
radio.setRfSwitchTable(rfswitch_pins, rfswitch_table); |
|
|
|
|
|
|
|
int status = radio.begin(LORA_FREQ, LORA_BW, LORA_SF, LORA_CR, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 8, 1.7, 0); |
|
|
|
int status = radio.begin(LORA_FREQ, LORA_BW, LORA_SF, LORA_CR, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, LORA_TX_POWER, 16, 1.7, 0); |
|
|
|
|
|
|
|
if (status != RADIOLIB_ERR_NONE) { |
|
|
|
Serial.print("ERROR: radio init failed: "); |
|
|
|
|