From 963c46ee0f8b815daba601741c68b1fb5a4528ea Mon Sep 17 00:00:00 2001 From: sh123 Date: Wed, 7 Apr 2021 09:08:10 +0300 Subject: [PATCH] Additional comments --- config.h | 6 ++++-- esp32_loraprs.ino | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/config.h b/config.h index 575de68..6b6196b 100644 --- a/config.h +++ b/config.h @@ -19,13 +19,14 @@ #define CFG_LORA_PIN_SS SS #define CFG_LORA_PIN_RST LORA_RST #define CFG_LORA_PIN_DIO0 LORA_IRQ +#define CFG_LORA_USE_ISR false // set to true for incoming packet ISR usage (stream mode, e.g. speech) #define CFG_LORA_FREQ 433.775E6 #define CFG_LORA_BW 125e3 #define CFG_LORA_SF 12 #define CFG_LORA_CR 7 #define CFG_LORA_PWR 20 -#define CFG_LORA_ENABLE_CRC true +#define CFG_LORA_ENABLE_CRC true // set to false for speech data #define CFG_BT_NAME "loraprs" @@ -37,7 +38,8 @@ #define CFG_WIFI_SSID "" #define CFG_WIFI_KEY "" -#define CFG_FREQ_CORR false +#define CFG_FREQ_CORR false // NB! incoming interrupts may stop working on frequent corrections when enabled + // test with your module before heavy usage #define CFG_PERSISTENT_APRS true #define CFG_DIGIREPEAT false #define CFG_RF_TO_IS true diff --git a/esp32_loraprs.ino b/esp32_loraprs.ino index dbad14b..896e992 100644 --- a/esp32_loraprs.ino +++ b/esp32_loraprs.ino @@ -28,13 +28,13 @@ void initializeConfig(LoraPrs::Config &cfg) { cfg.LoraCodingRate = CFG_LORA_CR; cfg.LoraSync = 0x34; cfg.LoraPower = CFG_LORA_PWR; - cfg.LoraEnableCrc = CFG_LORA_ENABLE_CRC; // set to false for speech data + cfg.LoraEnableCrc = CFG_LORA_ENABLE_CRC; // set to false for speech streaming data // lora pinouts cfg.LoraPinSs = CFG_LORA_PIN_SS; cfg.LoraPinRst = CFG_LORA_PIN_RST; cfg.LoraPinDio0 = CFG_LORA_PIN_DIO0; - cfg.LoraUseIsr = false; // set to true for incoming packet ISR usage + cfg.LoraUseIsr = CFG_LORA_USE_ISR; // set to true for incoming packet ISR usage (stream mode, e.g. speech) // aprs configuration cfg.AprsHost = "rotate.aprs2.net";