From 1d4555a064ecb287f2f354316be9a38a3e1aeb0d Mon Sep 17 00:00:00 2001 From: pelgraine <140762863+pelgraine@users.noreply.github.com> Date: Tue, 10 Feb 2026 12:51:13 +1100 Subject: [PATCH] increased preamble length from 16 to 32 --- variants/lilygo_tdeck_pro/target.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/variants/lilygo_tdeck_pro/target.cpp b/variants/lilygo_tdeck_pro/target.cpp index 2e7bb9ff..f8adccd2 100644 --- a/variants/lilygo_tdeck_pro/target.cpp +++ b/variants/lilygo_tdeck_pro/target.cpp @@ -46,11 +46,20 @@ bool radio_init() { loraSpi.begin(P_LORA_SCLK, P_LORA_MISO, P_LORA_MOSI, P_LORA_NSS); MESH_DEBUG_PRINTLN("radio_init() - SPI initialized, calling radio.std_init()..."); bool result = radio.std_init(&loraSpi); + if (result) { + radio.setPreambleLength(32); + MESH_DEBUG_PRINTLN("radio_init() - preamble set to 32 symbols"); + } MESH_DEBUG_PRINTLN("radio_init() - radio.std_init() returned: %s", result ? "SUCCESS" : "FAILED"); return result; #else MESH_DEBUG_PRINTLN("radio_init() - calling radio.std_init() without custom SPI..."); - return radio.std_init(); + bool result = radio.std_init(); + if (result) { + radio.setPreambleLength(32); + MESH_DEBUG_PRINTLN("radio_init() - preamble set to 32 symbols"); + } + return result; #endif }