From 3c645ca232f7c3ccf939cc52e23865cafff043cc Mon Sep 17 00:00:00 2001 From: Piotr Lewandowski Date: Sun, 21 Apr 2024 13:25:52 +0200 Subject: [PATCH] added preamble conf placeholder with def val, changed def to 8 symbols --- data/preferences.cfg | 2 +- data_embed/index.html | 2 +- src/TTGO_T-Beam_LoRa_APRS.ino | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/preferences.cfg b/data/preferences.cfg index 0e762b0..715bd9b 100644 --- a/data/preferences.cfg +++ b/data/preferences.cfg @@ -14,7 +14,7 @@ "lora_rx_en": true, "lora_tx_en": true, "txPower": 23, - "preambleLen": 64, + "preambleLen": 8, "lora_cradapt": false, "lora_rssi2p": 34, "snraprsis": true, diff --git a/data_embed/index.html b/data_embed/index.html index ef6e4f8..22e3410 100644 --- a/data_embed/index.html +++ b/data_embed/index.html @@ -156,7 +156,7 @@ You like to enable, if you use your tracker portable and it should automatically
- +
diff --git a/src/TTGO_T-Beam_LoRa_APRS.ino b/src/TTGO_T-Beam_LoRa_APRS.ino index 4654bd9..1db8659 100644 --- a/src/TTGO_T-Beam_LoRa_APRS.ino +++ b/src/TTGO_T-Beam_LoRa_APRS.ino @@ -448,8 +448,8 @@ boolean lora_tx_enabled = true; uint8_t txPower_cross_digi = 23; #endif #endif -uint32_t preambleLen = 64; // default tx preamble len -constexpr uint32_t rxTimeoutSymbols = 1024; // extended rx timout to avoid rejecting packets with long preamble +uint16_t preambleLen = 8; // default tx preamble len +constexpr uint16_t rxTimeoutSymbols = 1024; // extended rx timout to avoid rejecting packets with long preamble #define UNITS_SPEED_KMH 1 #define UNITS_SPEED_MS 2