From 7857e7a849c9b9c87f49b7c9014a8413cdea9ab2 Mon Sep 17 00:00:00 2001 From: lewisxhe Date: Tue, 2 Sep 2025 08:49:16 +0800 Subject: [PATCH] Fixed T3 factory example https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/issues/257 --- examples/T3S3Factory/T3S3Factory.ino | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/examples/T3S3Factory/T3S3Factory.ino b/examples/T3S3Factory/T3S3Factory.ino index cc2de67..790f198 100644 --- a/examples/T3S3Factory/T3S3Factory.ino +++ b/examples/T3S3Factory/T3S3Factory.ino @@ -96,12 +96,15 @@ FrameCallback frames[] = { hwInfo, radioTx, radioRx}; AceButton button; TransmissionDirection transmissionDirection = LORA_NONE; static uint8_t freq_index = 0; -const float factory_freq[] = {433.0, 470.0, 850.0, 868.0, 915.0, 920.0, 923.0 -#if defined(USING_LR1121) - , 2400, 2450 +const float factory_freq[] = { +#if !defined(USING_SX1280PA) && !defined(USING_SX1280) + 433.0, 470.0, 850.0, 868.0, 915.0, 920.0, 923.0, +#endif +#if defined(USING_LR1121) || defined(USING_SX1280)|| defined(USING_SX1280PA) + 2400, 2450 #endif - }; +}; float current_freq = CONFIG_RADIO_FREQ; @@ -513,10 +516,8 @@ void setup() state = radio.startReceive(); if (state != RADIOLIB_ERR_NONE) { Serial.println(F("[Radio] Received packet failed!")); - } + } - extern void setupRecord(); - setupRecord(); } void loop()